| From: | Alexander Korotkov <akorotkov(at)postgresql(dot)org> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Avoid syscache lookup while building a WAIT FOR tuple descriptor |
| Date: | 2026-04-06 19:47:42 |
| Message-ID: | E1w9pvB-003HW0-1A@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
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(at)gmail(dot)com>
Reviewed-by: Alexander Korotkov <aekorotkov(at)gmail(dot)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(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Álvaro Herrera | 2026-04-06 19:56:52 | pgsql: Add CONCURRENTLY option to REPACK |
| Previous Message | Nathan Bossart | 2026-04-06 19:31:32 | pgsql: Remove recheck_relation_needs_vacanalyze(). |