Skip to content
Discussion options

You must be logged in to vote

Are there essentially two different connections open?

No. The sql.DB gets connections as needed from the pgxpool and immediately releases them back to the pgxpool.

Is this still the case today?

It should be fine to use the pgxpool.Pool and the sql.DB created from that pool at the same time. I'm not aware of any performance issues.

Replies: 1 comment

Comment options

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