Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

initial slot snapshot too large #78

Open
ramkly opened this issue Dec 27, 2024 · 1 comment
Open

initial slot snapshot too large #78

ramkly opened this issue Dec 27, 2024 · 1 comment

Comments

@ramkly
Copy link

ramkly commented Dec 27, 2024

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?

@ahouska
Copy link
Contributor

ahouska commented Jan 2, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants