Configuring pg_squeeze#
Add
pg_squeezeto theshared_preload_librariesparameter:
shared_preload_libraries = pg_squeeze
Note
If shared_preload_libraries has other extensions, then you can add pg_squeeze to the list. The order doesn't matter. !!!
Add these changes to
postgresql.conf:
wal_level = logical
max_replication_slots = 1 # ... or add 1 to the current value.
Restart Postgres.
Create the
pg_squeezeextension in your database:
CREATE EXTENSION pg_squeeze;
Note
When upgrading a database cluster with pg_squeeze installed (either using pg_dumpall /pg_restore or pg_upgrade ), make sure that the new cluster has pg_squeeze in shared_preload_libraries before you upgrade. Otherwise the upgrade fails.