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

Add a pgbouncer.pool_mode GUC to disable certain Postgres functionality #4

Open
6 tasks
JelteF opened this issue May 28, 2024 · 0 comments
Open
6 tasks
Labels
enhancement New feature or request

Comments

@JelteF
Copy link
Member

JelteF commented May 28, 2024

Certain Postgres features are not supported when using PgBouncer in transaction pooling mode. However, because PgBouncer does not inspect queries it is unable to block usage of those features. It would be great to add a pgbouncer.pool_mode GUC that when set to 'transaction' would cause Postgres to throw errors for the following things (taken from https://www.pgbouncer.org/features.html#sql-feature-map-for-pooling-modes):

  • Query level prepared statements, i.e. DEALLOCATE/PREPARE
  • Session level advisory locks, i.e. pg_advisory_lock/pg_advisory_unlock
  • Session level SET/RESET commands for GUCs that are not GUC_REPORT. (probably means we want to implement #12 first)
  • Listening for changes on channels using LISTEN (but still allow NOTIFY to report a change).
  • WITH HOLD CURSOR
  • PRESERVE ROWS/DELETE ROWS temp tables
@JelteF JelteF added the enhancement New feature or request label May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant