| From: | Noah Misch <noah(at)leadboat(dot)com> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: reindexdb: Escape index names in parallel catalog query |
| Date: | 2026-11-09 14:21:52 |
| Message-ID: | E1xQQFs-000000003Qi-3neh@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
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(at)kurilemu(dot)de>
Reviewed-by: Michael Paquier <michael(at)paquier(dot)xyz>
Security: CVE-2026-116325
Backpatch-through: 17
Branch
------
REL_19_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/0ae4e866a92daec609db0752b5e07bc844215ae3
Author: Michael Paquier <michael(at)paquier(dot)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(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Noah Misch | 2026-11-09 14:21:53 | pgsql: Reject extnamespace if it's temporary or it's '$user'::regnamesp |
| Previous Message | Noah Misch | 2026-11-09 14:21:51 | pgsql: Close portals at end of trigger functions with transition tables |