postgresql-container icon indicating copy to clipboard operation
postgresql-container copied to clipboard

Checksums by default/optionally for >=9.3

Open shaded-enmity opened this issue 6 years ago • 5 comments

Added in PostgreSQL 9.3 (https://wiki.postgresql.org/wiki/What%27s_new_in_PostgreSQL_9.3#Data_Checksums) it seems that this would be a sane default for initdb in common.sh scripts, or at least an env variable tunable, what do you guys think?

shaded-enmity avatar Mar 13 '18 13:03 shaded-enmity

-1 for default, -0 for an option. We could create env var for every postgresql option; let me first propose you postgresql-start/ hook first, where you can construct your own config file contents.. would that work?

praiskup avatar Mar 13 '18 14:03 praiskup

I forgot, there's also https://github.com/sclorg/postgresql-container/tree/5136552d8295de4884c217192eeab5e45c5a58ce/latest#postgresql-cfg

praiskup avatar Mar 13 '18 14:03 praiskup

From the doc this looks like an argument to the initdb call so I do not think postgresql-cfg would help. Unless it has a accompanying config option I have missed?

pkubatrh avatar Mar 13 '18 15:03 pkubatrh

Right :-) turning the brain on now.. so I guess we can not go without new option.

praiskup avatar Mar 13 '18 15:03 praiskup

Lets try taking a look at this in more detail to see what needs to be done to implement this.

pkubatrh avatar Feb 22 '23 09:02 pkubatrh