[Patch]Add Graph* node support to expression_tree_mutator
SATYANARAYANA NARLAPURAM <satyanarlapuram@gmail.com>
From: SATYANARAYANA NARLAPURAM <satyanarlapuram@gmail.com>
To: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>, Ashutosh Bapat <ashutosh.bapat.oss@gmail.com>
Date: 2026-04-21T15:56:44Z
Lists: pgsql-hackers
Attachments
- 0001-Add-Graph-node-support-to-expression_tree_mutator.patch (application/octet-stream) patch 0001
Hi hackers, expression_tree_mutator_impl() was missing case handlers for T_GraphPattern, T_GraphElementPattern, and T_GraphPropertyRef. The corresponding expression_tree_walker_impl() already handled all three node types, but the mutator did not, causing an "unrecognized node type: 106" error whenever a GRAPH_TABLE subquery appeared in a HAVING clause. SELECT 1 FROM hv GROUP BY id HAVING (SELECT COUNT(*) FROM GRAPH_TABLE(gh MATCH (a) COLUMNS (a.id AS x))) > 0; SET ERROR: unrecognized node type: 106 Attached a patch to address this. Thanks, Satya
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Handle nodes that may appear in GraphPattern expression trees
- dc9e7c9ed938 19 (unreleased) landed