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

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

Open
PrabhuRaja1010 opened this issue Feb 8, 2025 · 2 comments
Assignees
Labels
postgresql-repmgr stale 15 days without activity triage Triage is needed

Comments

@PrabhuRaja1010
Copy link

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!

@github-actions github-actions bot added the triage Triage is needed label Feb 8, 2025
@PrabhuRaja1010 PrabhuRaja1010 changed the title Feature Request : Add dbname in primary_conninfo at postgres.auto.conf to support Failover Slot in Bitnami PostgreSQL cluster [bitnami:postgresql-repmgr] Feature Request : Add dbname in primary_conninfo at postgres.auto.conf to support Failover Slot in Bitnami PostgreSQL cluster Feb 8, 2025
@PrabhuRaja1010 PrabhuRaja1010 changed the title [bitnami:postgresql-repmgr] Feature Request : Add dbname in primary_conninfo at postgres.auto.conf to support Failover Slot in Bitnami PostgreSQL cluster [bitnami/postgresql-repmgr] Feature Request : Add dbname in primary_conninfo at postgres.auto.conf to support Failover Slot in Bitnami PostgreSQL cluster Feb 8, 2025
@javsalgar
Copy link
Contributor

Hi!

Thank you so much for the feature request! I believe it makes sense. I will forward it to the team, but as it is not a critical feature, we cannot guarantee an ETA. If you want to speed up the process, you can submit a PR updating the libpostgresql.sh or librepmgr.sh libraries and we will review it.

Copy link

This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.

@github-actions github-actions bot added the stale 15 days without activity label Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
postgresql-repmgr stale 15 days without activity triage Triage is needed
Projects
None yet
Development

No branches or pull requests

2 participants