pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: reindexdb: Escape index names in parallel catalog query 3+ messages / 1 participants [nested] [flat]
* pgsql: reindexdb: Escape index names in parallel catalog query @ 2026-11-09 14:21 Noah Misch <noah@leadboat.com> 0 siblings, 0 replies; 3+ messages in thread From: Noah Misch @ 2026-11-09 14:21 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 ------ master Details ------- https://git.postgresql.org/pg/commitdiff/7820c8c397d2234980f77308f5de07eb9c912820 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(-) ^ permalink raw reply [nested|flat] 3+ messages in thread
* pgsql: reindexdb: Escape index names in parallel catalog query @ 2026-11-09 14:21 Noah Misch <noah@leadboat.com> 0 siblings, 0 replies; 3+ messages in thread From: Noah Misch @ 2026-11-09 14:21 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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_19_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/0ae4e866a92daec609db0752b5e07bc844215ae3 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(-) ^ permalink raw reply [nested|flat] 3+ messages in thread
* pgsql: reindexdb: Escape index names in parallel catalog query @ 2026-11-09 14:21 Noah Misch <noah@leadboat.com> 0 siblings, 0 replies; 3+ messages in thread From: Noah Misch @ 2026-11-09 14:21 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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(-) ^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2026-11-09 14:21 UTC | newest] Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2026-11-09 14:21 pgsql: reindexdb: Escape index names in parallel catalog query Noah Misch <noah@leadboat.com> 2026-11-09 14:21 pgsql: reindexdb: Escape index names in parallel catalog query Noah Misch <noah@leadboat.com> 2026-11-09 14:21 pgsql: reindexdb: Escape index names in parallel catalog query Noah Misch <noah@leadboat.com>
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