Skip to content

[bitnami/postgresql-repmgr] Feature Request : Add dbname in primary_conninfo at postgres.auto.conf to support Failover Slot in Bitnami PostgreSQL cluster #77103

@PrabhuRaja1010

Description

@PrabhuRaja1010

I would like to request an enhancement to the Bitnami PostgreSQL with Repmgr container to support specifying a database name (dbname) in primary_conninfo.

Problem Statement:

PostgreSQL 17 introduces failover slots to improve logical replication during primary failovers. However, primary_conninfo does not currently support dbname=, which makes it difficult to maintain logical replication with failover slots in a Bitnami PostgreSQL cluster.

Since Bitnami's PostgreSQL container manages replication configurations dynamically, it would be helpful if dbname could be added to primary_conninfo within postgresql.auto.conf.

Proposed Enhancement:
Modify the Bitnami PostgreSQL container logic to allow users to:

  1. Set a database name in primary_conninfo via an environment variable (e.g., REPMGR_PRIMARY_DBNAME).
  2. Ensure primary_conninfo updates dynamically to include dbname= when configured.

Benefits:
Enables failover slots for logical replication users.
Reduces manual intervention during primary failover.
Improves compatibility with Debezium and other logical replication tools.

Would it be possible to consider this enhancement for an upcoming release? I’d be happy to discuss the details or provide more use cases.

Thank you for your time and consideration!

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions