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
The below seems to be a common (incorrect) pattern of use:
asyncwithpool.acquire() asconn:
# await conn.add_listener# await conn.prepare# etc# Incorrect assumption that the listeners and prepared statements would continue to # work beyond the `conn` acquisition context
To give a better hint that this is not a valid thing to do, we should check if conn has unclosed resources on it before releasing it. Possibly, behind a debug flag (either ASYNCPGDEBUG, or PYTHONASYNCIODEBUG, or both).