PostgreSQL Ubuntu – How to Install from PPA with Data-Checksums Enabled

postgresqlUbuntu

We are currently installing Postgresql from the PostgreSQL apt repository. Is there some way to get "apt-get install postgresql-9.6" to use the –data-checksums option when setting up the cluster?

Or do we need to install Postgresql differently?

Best Answer

If you do not want to install and drop the cluster on Debian and related, you could:

  • Install postgresql-common;
  • Edit the /etc/postgresql-common/createcluster.conf file to allow the use of the --data-checksums option;
  • Install postgresql-9.6.