Re: BUG #19542: Boolean syntax in GRAPH_TABLE - Mailing list pgsql-bugs

From Peter Eisentraut
Subject Re: BUG #19542: Boolean syntax in GRAPH_TABLE
Date
Msg-id 42ba85f6-b38c-416e-97cb-595073e6956a@eisentraut.org
Whole thread
In response to Re: BUG #19542: Boolean syntax in GRAPH_TABLE  (vaibhave postgres <postgresvaibhave@gmail.com>)
List 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




pgsql-bugs by date:

Previous
From: Ewan Young
Date:
Subject: Re: BUG #19545: Integer truncation of `GinTuple.keylen` causes out-of-bounds read in parallel GIN index build
Next
From: Heikki Linnakangas
Date:
Subject: Re: BUG #19545: Integer truncation of `GinTuple.keylen` causes out-of-bounds read in parallel GIN index build