pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Noah Misch <noah@leadboat.com>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: reindexdb: Escape index names in parallel catalog query
Date: Mon, 09 Nov 2026 14:21:57 +0000
Message-ID: <E1xQQFx-000000003by-3jSZ@gemulon.postgresql.org> (raw)

reindexdb: Escape index names in parallel catalog query

get_parallel_tabidx_list() builds an array of regclass values, and
incorrectly assigned quotes to the query built, leading to incorrect
queries once the names of the objects included single quotes.

This issue is by embedding each object name inside their own
appendQualifiedRelation() before being attached to the final catalog
query.  Some tests are added.

Issue introduced by 47f99a407de2.

Reported-by: Anthropic OSS program
Author: Anthropic OSS program
Reviewed-by: Álvaro Herrera <alvherre@kurilemu.de>
Reviewed-by: Michael Paquier <michael@paquier.xyz>
Security: CVE-2026-116325
Backpatch-through: 17

Branch
------
REL_18_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/aac5e6f5038a4d3b9a6d71b30e57fd9c9436033c
Author: Michael Paquier <michael@paquier.xyz>

Modified Files
--------------
src/bin/scripts/common.c           |  5 +++++
src/bin/scripts/reindexdb.c        | 21 +++++++++++++++++----
src/bin/scripts/t/090_reindexdb.pl | 17 +++++++++++++++++
3 files changed, 39 insertions(+), 4 deletions(-)



view thread (3+ messages)

Message-ID: <E1xQQFx-000000003by-3jSZ@gemulon.postgresql.org>
Permalink:  ../E1xQQFx-000000003by-3jSZ@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1xQQFx-000000003by-3jSZ@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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: noah@leadboat.com
  Subject: Re: pgsql: reindexdb: Escape index names in parallel catalog query
  In-Reply-To: <E1xQQFx-000000003by-3jSZ@gemulon.postgresql.org>
  References: <E1xQQFx-000000003by-3jSZ@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 DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox