Re: BUG #19542: Boolean syntax in GRAPH_TABLE

Поиск
Список
Период
Сортировка
Искать
От
Peter Eisentraut
Тема
Re: BUG #19542: Boolean syntax in GRAPH_TABLE
Дата
в 10:51:11
Msg-id
42ba85f6-b38c-416e-97cb-595073e6956a@eisentraut.org
Ответ на
Список
Дерево обсуждения
BUG #19542: Boolean syntax in GRAPH_TABLE PG Bug reporting form <noreply@postgresql.org>
Re: BUG #19542: Boolean syntax in GRAPH_TABLE vaibhave postgres <postgresvaibhave@gmail.com>
Re: BUG #19542: Boolean syntax in GRAPH_TABLE Peter Eisentraut <peter@eisentraut.org>
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 по дате отправления
FAQ