Re: BUG #19542: Boolean syntax in GRAPH_TABLE

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: vaibhave postgres <postgresvaibhave(at)gmail(dot)com>, h(dot)lefebvre(dot)69(at)gmail(dot)com, pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #19542: Boolean syntax in GRAPH_TABLE
Date: 2026-07-08 07:51:11
Message-ID: 42ba85f6-b38c-416e-97cb-595073e6956a@eisentraut.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On 05.07.26 10:20, vaibhave postgres wrote:
> Thanks for reporting.
>
> The crash comes from replace_property_refs() (src/backend/rewrite/
> rewriteGraphTable.c) which rewrites the GraphPropertyRef nodes.
>
> It calls expression_tree_mutator() directly on the top level node
> instead of calling it's mutator (replace_property_refs_mutator()) which
> treats GraphPropertyRef as a leaf & just copies it unchanged.
>
> ```
> case T_GraphLabelRef:
> case T_GraphPropertyRef:
> case T_MergeSupportFunc:
>
> return copyObject(node);
>
> ```
>
>
> The fix is to call the mutator directly at the entry point.

Thanks, this has also been discovered in [0], and the fix there is the same.

[0]:
https://www.postgresql.org/message-id/flat/20260630173053.51.noahmisch%40microsoft.com

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Heikki Linnakangas 2026-07-08 07:52:50 Re: BUG #19545: Integer truncation of `GinTuple.keylen` causes out-of-bounds read in parallel GIN index build
Previous Message Ewan Young 2026-07-08 06:27:55 Re: BUG #19545: Integer truncation of `GinTuple.keylen` causes out-of-bounds read in parallel GIN index build