pg.ddx.io  psycopg/psycopg GitHub issues and pull requests  
help / color / mirror / Atom feed
From: dvarrazzo (@dvarrazzo) <noreply+dvarrazzo@github.com>
To: psycopg/psycopg <noreply+psycopg-psycopg@github.com>
Subject: Re: [psycopg/psycopg] issue #1427: Hang in futex, linked to garbage collection
Date: Sat, 03 Oct 2026 16:56:50 +0000
Message-ID: <gh-psycopg-psycopg-1427-c5971318870@github.com> (raw)
In-Reply-To: <gh-psycopg-psycopg-1427@github.com>
References: <gh-psycopg-psycopg-1427@github.com>

Hmmm.... actually, I was thinking that `close()` was called by `ServerCursor.__del__()`, but it's not: `__del__` just complains that the cursor was left open, it doesn't take the initiative to close it.

https://github.com/psycopg/psycopg/blob/7b45cbc304e6a8a264f7dbc444a87cfae5b15064/psycopg/psycopg/_se...

So maybe it's the GC of a Django wrapper that calls `close()` on the psycopg server cursor?

view thread (10+ messages)  latest in thread

Message-ID: <gh-psycopg-psycopg-1427-c5971318870@github.com>
Permalink:  ../gh-psycopg-psycopg-1427-c5971318870@github.com/

 · 


This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox