Re: BUG #18944: Assertion Failure in psql with idle_session_timeout Set
Michael Paquier <michael@paquier.xyz>
From: Michael Paquier <michael@paquier.xyz>
To: Anthonin Bonnefoy <anthonin.bonnefoy@datadoghq.com>
Cc: n.kalinin@postgrespro.ru, pgsql-bugs@lists.postgresql.org
Date: 2025-06-02T23:31:16Z
Lists: pgsql-bugs
On Mon, Jun 02, 2025 at 07:00:26PM +0200, Anthonin Bonnefoy wrote: > So if that's expected, we may need additional logic to avoid > increasing piped_syncs when we're after a COPY? On the other hand, > ignoring the SYNC seems to break the protocol spec expectation that > "there is one and only one ReadyForQuery sent for each Sync". Hmm. This stuff stands as it is in the backend COPY code since c01641f8aed0 from 2003, so there's not much we can do in the backend or libpq. Adding some specific logic in psql to avoid piped_syncs seems like the correct move seen from here. Most of that should be close to ExecQueryAndProcessResults(), don't you think? That's where we count the number of piped syncs. -- Michael
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
psql: Forbid use of COPY and \copy while in a pipeline
- 6e951f279bea 18.0 landed
-
psql: Abort connection when using \syncpipeline after COPY TO/FROM
- 7f3381c7ee66 18.0 landed