Skip to content

How to use RegisterDefaultPgType with connection Pool? #1532

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

You must be logged in to vote

You can do type registration in an AfterConnect hook with pgxpool. See https://pkg.go.dev/github.com/jackc/pgx/[email protected]/pgxpool#Config.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@stasvo
Comment options

Answer selected by stasvo
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