pgsql: Add a graph pattern variable only once

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Add a graph pattern variable only once
Date: 2026-03-27 09:55:29
Message-ID: E1w63ua-001g0x-0y@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Add a graph pattern variable only once

An element pattern variable may be repeated in the path pattern.
GraphTableParseState maintains a list of all variable names used in
the graph pattern. Add a new variable name to that list only when it
is not present already. This isn't a problem right now, but it could
be in the future.

Author: Ashutosh Bapat <ashutosh(dot)bapat(dot)oss(at)gmail(dot)com>
Discussion: https://www.postgresql.org/message-id/CAExHW5tR4O0vjeqTCPr2VB5pYjNYbJgbCBEQf63NtU5Pz1MiOQ%40mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/288ae968726ebaca587a446041fe0e0a6377562d

Modified Files
--------------
src/backend/parser/parse_graphtable.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Heikki Linnakangas 2026-03-27 11:12:05 pgsql: Avoid memory leak on error while parsing pg_stat_statements dump
Previous Message Heikki Linnakangas 2026-03-27 09:45:49 pgsql: Minor comment fixes to yesterday's LWLock tranche refactoring