Skip to content

Data race when using pgx/pgconn with pglogrepl #2009

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

You must be logged in to vote

*pgconn.PgConn is not concurrency safe. It appears this code is calling Close() from one goroutine while another goroutine is using the *pgconn.PgConn. That is not supported.

Replies: 1 comment 1 reply

Comment options

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

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