Closed cameronmurdoch closed 2 months ago
@cameronmurdoch hello, thanks for reporting the issue! Sure, go ahead, thanks! A couple of (probably obvious) things worth mentioning:
thanks!
Thanks @Andersson007
I have some working code, but there are two issues here.
postgresql_db
doesn't really work at all with pg17 due to the changes to pg_database
.
We should probably add support for the new builtin locale provider, but that is a bit more work.
I started on 1. but ended up sliding into doing 2. :-)
So I think I will initially submit a PR to just fix 1. which looks to be a fairly trivial change. 2. should be a separate issue I think.
Thanks @Andersson007
I have some working code, but there are two issues here.
postgresql_db
doesn't really work at all with pg17 due to the changes topg_database
.- We should probably add support for the new builtin locale provider, but that is a bit more work.
I started on 1. but ended up sliding into doing 2. :-)
So I think I will initially submit a PR to just fix 1. which looks to be a fairly trivial change. 2. should be a separate issue I think.
@cameronmurdoch sounds like a plan, thanks
SUMMARY
Due to pg_catalog changes in the forthcoming pg17 release, postgresql_db throws an exception on all runs other than the first.
ISSUE TYPE
COMPONENT NAME
postgresql_db
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
Fedora 40 Nothing really changed from standard
STEPS TO REPRODUCE
Creating a database with postgresql_db module works as expected, but on all subsequent runs of the play we hit an exception.
EXPECTED RESULTS
That the playbook completes with no changes
ACTUAL RESULTS
This is because the pg_database column daticulocale has been renamed to datlocale, I think as part of the work to add a builtin collation provider and get_db_info() chokes on this.
I would be interested in helping to fix this and can hopefully submit a PR quite soon.