From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Reject consecutive element patterns of same kind
Date: Fri, 27 Mar 2026 09:41:08 +0000
Message-ID: <E1w63gh-001frY-2k@gemulon.postgresql.org> (raw)
Reject consecutive element patterns of same kind
Adding an implicit empty vertex pattern when a path pattern starts or
ends with an edge pattern or when two consecutive edge patterns appear
in the pattern is not supported right now. Prohibit such path
patterns.
Author: Ashutosh Bapat <ashutosh.bapat.oss@gmail.com>
Reported-by: Alexander Lakhin <exclusion@gmail.com>
Reviewed-by: Henson Choi <assam258@gmail.com>
Discussion: https://www.postgresql.org/message-id/flat/72a23702-6d96-4103-a54b-057c2352e885%2540eisentraut.org
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/720f0f89d696a5c12817359b5c0f3da8e7ebdfe8
Modified Files
--------------
src/backend/parser/parse_graphtable.c | 48 +++++++++++++++++++++++++++----
src/backend/rewrite/rewriteGraphTable.c | 10 +++++++
src/test/regress/expected/graph_table.out | 19 ++++++++++++
src/test/regress/sql/graph_table.sql | 6 ++++
4 files changed, 78 insertions(+), 5 deletions(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-committers@postgresql.org
Cc: peter@eisentraut.org, pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Reject consecutive element patterns of same kind
In-Reply-To: <E1w63gh-001frY-2k@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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