pgsql: pg_plan_advice: Disallow empty sublists within JOIN_ORDER()

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: pg_plan_advice: Disallow empty sublists within JOIN_ORDER()
Date: 2026-09-16 18:57:43
Message-ID: E1x6upD-00000000eBb-2ouU@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

pg_plan_advice: Disallow empty sublists within JOIN_ORDER()

Commit 8c9c2e5c09aeda713640ccb26bfca0fdccc310d5 fixed a similar
issue for FOREIGN_JOIN(). Handle this case similar to the way that
commit handled that case.

Backpatch-through: 19
Discussion: https://postgr.es/m/CA+TgmoYmXy-jiP5qDhqNEiYFEBzQsArO6O2d9E8szNZqi1bePQ@mail.gmail.com
Reviewed-by: Ayush Tiwari <ayushtiwari(dot)slg01(at)gmail(dot)com>

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/5e595d659fdb4829e910a1c4122ad4dec9dd0bd3

Modified Files
--------------
contrib/pg_plan_advice/expected/syntax.out | 7 +++++++
contrib/pg_plan_advice/pgpa_parser.y | 6 ++++++
contrib/pg_plan_advice/sql/syntax.sql | 4 ++++
3 files changed, 17 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Daniel Gustafsson 2026-09-16 19:00:10 pgsql: Fix online checksums revert leftovers
Previous Message Bryan Green 2026-09-16 17:44:32 Re: pgsql: Revert online data checksum transitions