Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
config_pgcluster: Create extensions after restarting Postgres (if req…
…uired) (#761) Previously, the role for creating extensions was executed before the restart, which could result in errors, example: failed: [10.129.50.35] (item={'ext': 'pg_cron', 'db': 'postgres', 'schema': 'pg_catalog'}) => {"ansible_loop_var": "item", "changed": false, "item": {"db": "postgres", "ext": "pg_cron", "schema": "pg_catalog"}, "msg": "Management of PostgreSQL extension failed: pg_cron can only be loaded via shared_preload_libraries\nHINT: Add pg_cron to the shared_preload_libraries configuration variable in ********ql.conf.\n"} Now, extensions will be created after the restart. Note: If the `pending_restart: true` variable is set, the cluster will be restarted if required (e.g., when changing `shared_preload_libraries`).
- Loading branch information