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 UDF named "reconfigure" that triggers a pgbouncer reconfig and blocks until it is completed. #6

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

emelsimsek
Copy link
Contributor

USAGE:

select * from pgbouncer.reconfigure();

SYNOPSIS:

reconfigure is used to signal pg_pgbouncer background worker to recreate the pgbouncer configuration. The function waits until the pg_pgbouncer background worker signals back.

count is used to check if the waiting condition is satisfied. count is kept in shared memory and incremented in each refconfiguration process. Reconfigure notes the current count before signalling the background worker and waits to be signalled back. The waiting condition is satisfied if the new count is greater.

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.

1 participant