Pgx: Why pgx.Conn.WaitForNotification sometime return conn is busy Error ? how to avoid it ?

Created on 24 Aug 2017  路  2Comments  路  Source: jackc/pgx

When I call pgx.Conn.Ping method to check if a connection is alive or call WaitForNotification
sometime return conn is busy Error ? how to avoid it ?

Most helpful comment

You might have forgotten to rows.Close() or close a transaction.

All 2 comments

ErrConnBusy occurs when the connection is busy (for example, in the middle of reading query results) and another action is attempted. This error indicates a bug in your application or in pgx. It should never occur in correct operation.

You might have forgotten to rows.Close() or close a transaction.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jeromer picture jeromer  路  11Comments

pengux picture pengux  路  3Comments

hgl picture hgl  路  6Comments

rkintzi picture rkintzi  路  5Comments

kokizzu picture kokizzu  路  6Comments