Add dbname=postgres to primary_conninfo for replication slot#65
Merged
souravbiswassanto merged 2 commits intoJul 24, 2026
Merged
Conversation
…t policy When WAL_LIMIT_POLICY is set to ReplicationSlot, the primary_conninfo parameter now includes dbname=postgres. This ensures that the standby connects to the postgres database (not the configured POSTGRES_DB) for replication slot management, which is required for proper replication slot functionality in PG 17 and 18. Changes: - role_scripts/17/primary/start.sh: Add dbname=postgres when WAL_LIMIT_POLICY=ReplicationSlot - role_scripts/18/primary/start.sh: Add dbname=postgres when WAL_LIMIT_POLICY=ReplicationSlot - scripts/config_recovery.conf.sh: Add dbname=postgres when WAL_LIMIT_POLICY=ReplicationSlot Signed-off-by: saurov@appscode.com Signed-off-by: souravbiswassanto <sourav.cse4.bu@gmail.com>
…ation slot When WAL_LIMIT_POLICY is set to ReplicationSlot, add dbname=postgres to primary_conninfo in standby initialization scripts. This ensures standbys also connect to the postgres database for proper replication slot management. Changes: - role_scripts/17/standby/run.sh: Add dbname=postgres when WAL_LIMIT_POLICY=ReplicationSlot - role_scripts/18/standby/run.sh: Add dbname=postgres when WAL_LIMIT_POLICY=ReplicationSlot - role_scripts/17/standby/remote-replica.sh: Add dbname=postgres when WAL_LIMIT_POLICY=ReplicationSlot - role_scripts/18/standby/remote-replica.sh: Add dbname=postgres when WAL_LIMIT_POLICY=ReplicationSlot Signed-off-by: saurov@appscode.com Signed-off-by: souravbiswassanto <sourav.cse4.bu@gmail.com>
souravbiswassanto
deleted the
add-dbname-postgres-to-primary-conninfo-for-replication-slot
branch
July 24, 2026 03:38
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
dbname=postgresto theprimary_conninfoparameter whenWAL_LIMIT_POLICYis set toReplicationSlotfor PG 17 and 18Changes
role_scripts/17/primary/start.sh: Add conditional dbname parameterrole_scripts/18/primary/start.sh: Add conditional dbname parameterscripts/config_recovery.conf.sh: Add conditional dbname parameterWhy
When using replication slots for WAL limit policy, the connection needs to explicitly specify the postgres database to ensure proper replication slot functionality.
🤖 Generated with Claude Code