Skip to content

How do I refresh creds of existing pgxpool? #2103

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

You must be logged in to vote

I'm not sure about your exact use case, but BeforeConnect is the correct place to mutate the connection parameters when making a connection.

As far as closing old connections, you probably want to call Pool.Reset.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by vrv7567
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