Skip to content

How to change the config of pgxpool which is in use #2006

Answered by jackc
sasakiyori asked this question in Q&A
Discussion options

You must be logged in to vote

I think I would create a wrapper around the *pgxpool.Pool that handles creating and closing the *pgxpool.Pool when the configuration changes. Then all the application code would use this wrapper rather than the *pgxpool.Pool directly.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by sasakiyori
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants