-
Hello, I'm thinking of using the advisory lock feature of PostgreSQL with My question is how I can unlock all acquired locks when I put back a connection to the pool. |
Beta Was this translation helpful? Give feedback.
Answered by
ymmt2005
Jul 24, 2024
Replies: 1 comment
-
Ah, I guess I found the answer. I can use |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ymmt2005
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ah, I guess I found the answer.
https://pkg.go.dev/github.com/jackc/pgx/v5@v5.6.0/pgxpool#Config
I can use
pgpool.Config.AfterRelease
to unlock all locks.