Skip to content

Fix PG17 Logical Slot failover by keeping the dbname parameter in primary_conninfo#906

Open
vikrantmehta123 wants to merge 2 commits intoEnterpriseDB:masterfrom
vikrantmehta123:vikrant-dev
Open

Fix PG17 Logical Slot failover by keeping the dbname parameter in primary_conninfo#906
vikrantmehta123 wants to merge 2 commits intoEnterpriseDB:masterfrom
vikrantmehta123:vikrant-dev

Conversation

@vikrantmehta123
Copy link

Postgres 17+ has support for logical slot failover, which requires dbname parameter to be set in primary_conninfo.

Files Changed:

  • repmgr-action-standby.c

In this PR, I changed the signature of the write_primary_conninfo parameter to include the version number of Postgres. If the version number is greater than 17, we include the dbname parameter in the primary_conninfo string.

I felt we could use the existing config for dbname in the primary_conninfo, hence I haven't made any changes to configurations.

@vikrantmehta123 vikrantmehta123 requested a review from a team as a code owner January 14, 2026 06:29
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

Successfully merging this pull request may close these issues.

2 participants