agora inbox for pgsql-committers@postgresql.org
help / color / mirror / Atom feedFrom: Alexander Korotkov <akorotkov@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Avoid syscache lookup while building a WAIT FOR tuple descriptor
Date: Mon, 06 Apr 2026 19:47:42 +0000
Message-ID: <E1w9pvB-003HW0-1A@gemulon.postgresql.org> (raw)
Avoid syscache lookup while building a WAIT FOR tuple descriptor
Use TupleDescInitBuiltinEntry instead of TupleDescInitEntry when building
the result tuple descriptor for the WAIT FOR command. This avoids a syscache
access that could re-establish a catalog snapshot after we've explicitly
released all snapshots before the wait.
Discussion: https://postgr.es/m/CABPTF7U%2BSUnJX_woQYGe%3D%3DR9Oz%2B-V6X0VO2stBLPGfJmH_LEhw%40mail.gmail.com
Author: Xuneng Zhou <xunengzhou@gmail.com>
Reviewed-by: Alexander Korotkov <aekorotkov@gmail.com>
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/834038c1f8d52f51666c60ec774bbbf590f4e8c6
Modified Files
--------------
src/backend/commands/wait.c | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
Message-ID: <E1w9pvB-003HW0-1A@gemulon.postgresql.org>
Permalink: ../E1w9pvB-003HW0-1A@gemulon.postgresql.org/
Also on: postgresql.org/message-id/E1w9pvB-003HW0-1A@gemulon.postgresql.org
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-committers@postgresql.org
Cc: akorotkov@postgresql.org, pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Avoid syscache lookup while building a WAIT FOR tuple descriptor
In-Reply-To: <E1w9pvB-003HW0-1A@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox