pg_squeeze icon indicating copy to clipboard operation
pg_squeeze copied to clipboard

initial slot snapshot too large

Open ramkly opened this issue 1 year ago • 1 comments

Most of the time, pg_squeeze is unsuccessful in my databases and returns the error: 'initial slot snapshot too large.' Is there any way to resolve this issue? Currently, wal_keep_size is set to 0, and max_slot_wal_keep_size is set to -1. I’m wondering if adjusting these settings could help resolve the issue?

ramkly avatar Dec 27 '24 12:12 ramkly

I wonder if this error is specific to pg_squeeze. Does the same error occur if you run the following?

psql -d 'replication=database dbname=postgres' -c 'CREATE_REPLICATION_SLOT pg_squeeze_test_slot LOGICAL pg_squeeze'

Please do not forget to drop the slot after each test:

psql -d 'replication=database dbname=postgres' -c 'DROP_REPLICATION_SLOT pg_squeeze_test_slot'

I don't think that wal_keep_size or max_slot_wal_keep_size can fix the issue. These settings can cause removal of WAL which pg_squeeze still needs, in which case the process executing pg_squeeze should be terminated.

ahouska avatar Jan 02 '25 13:01 ahouska

Stale; closing now.

df7cb avatar Aug 04 '25 13:08 df7cb