Fix empty FOREIGN_JOIN sublist validation FOREIGN_JOIN target sublists must contain at least two relation identifiers. However, the parser checked only for sublists with exactly one identifier, so FOREIGN_JOIN(()) was accepted.
Reject sublists with fewer than two relation identifiers, and add regression coverage. Author: Chao Li <[email protected]> Discussion: http://postgr.es/m/[email protected] Branch ------ REL_19_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/400c810ddbd7890f751913977e4442d71a0ebfc4 Modified Files -------------- contrib/pg_plan_advice/expected/syntax.out | 3 +++ contrib/pg_plan_advice/pgpa_parser.y | 2 +- contrib/pg_plan_advice/sql/syntax.sql | 1 + 3 files changed, 5 insertions(+), 1 deletion(-)
