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-jip5qdhqneiyfebzqsaro6o2d9e8sznzqi1b...@mail.gmail.com
Reviewed-by: Ayush Tiwari <[email protected]>

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(+)

Reply via email to