cloudnative-pgvecto.rs icon indicating copy to clipboard operation
cloudnative-pgvecto.rs copied to clipboard

Heads up: alter system is disabled by default

Open samip5 opened this issue 1 year ago • 1 comments

in CloudNativePG version 1.22 and onwards, the default configuration disables the use of ALTER SYSTEM on new Postgres clusters. This decision is rooted in the recognition of potential risks associated with this command. To enable the use of ALTER SYSTEM, you can explicitly set .spec.postgresql.enableAlterSystem to true.

https://cloudnative-pg.io/documentation/1.22/postgresql_conf/#enabling-alter-system

samip5 avatar May 14 '24 04:05 samip5

Perhaps we should move away from using ALTER SYSTEM in the postInitSQL and just set the search_path through the postgresql config spec just like shared_preload_libraries? I'm not sure what the complete implications of that would be though.

bo0tzz avatar May 14 '24 08:05 bo0tzz