From: JulienPalard (@JulienPalard) <noreply+JulienPalard@github.com>
To: psycopg/psycopg <noreply+psycopg-psycopg@github.com>
Subject: Re: [psycopg/psycopg] issue #1427: Hang in futex, linked to garbage collection
Date: Thu, 01 Oct 2026 11:35:03 +0000
Message-ID: <gh-psycopg-psycopg-1427-c5930479241@github.com> (raw)
In-Reply-To: <gh-psycopg-psycopg-1427@github.com>
References: <gh-psycopg-psycopg-1427@github.com>
> If a GC triggers `ServerCursor.close()` then it means that the cursor is not managed with a context manager, right?
I have no proof yet, I bet I should try to use tracemalloc to find out, but what's you're writing looks right to me.