You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pgx.ReplicationConn consists of a pgx.Conn internally, of which the documentation states:
Conn is a PostgreSQL connection handle. It is not safe for concurrent usage. Use ConnPool to manage access to multiple database connections from multiple goroutines.
In db/lr.go the method sendPeriodicHeartbeats() is accessing the session.ReplConn concurrently with the main loop in LRStream.
The text was updated successfully, but these errors were encountered:
johanmickos
changed the title
Unsafe concurrent usage of ReplicationConn
Unsafe concurrent use of ReplicationConn
Feb 14, 2019
pgx.ReplicationConn
consists of apgx.Conn
internally, of which the documentation states:In
db/lr.go
the methodsendPeriodicHeartbeats()
is accessing thesession.ReplConn
concurrently with the main loop inLRStream
.The text was updated successfully, but these errors were encountered: