Skip to content

Fix issue #1347 - unknow type of agtype container 0 - #1351

Merged
jrgemignani merged 1 commit into
apache:PG13from
rafsun42:issue_1347-PG13
Nov 3, 2023
Merged

jrgemignani merged 1 commit into
apache:PG13from
rafsun42:issue_1347-PG13

Conversation

@rafsun42

@rafsun42 rafsun42 commented Nov 3, 2023

Copy link
Copy Markdown
Member

The error was caused by the Datum referenced by
edge_entry->edge_properties becoming non-persistent. As a result, the pointer becomes dangling. This issue is fixed by making a copy of the Datum into the MemoryContext it is used. The fix is also applied to
vertex_entry->vertex_properties.

Thanks to John for finding out the correct function to copy a Datum.

The error was caused by the Datum referenced by
edge_entry->edge_properties becoming non-persistent. As a
result, the pointer becomes dangling. This issue is fixed
by making a copy of the Datum into the MemoryContext it is
used. The fix is also applied to
vertex_entry->vertex_properties.

Thanks to John for finding out the correct function to
copy a Datum.

Co-authored-by: John Gemignani <[email protected]>
@github-actions github-actions Bot added the PG13 PostgreSQL13 label Nov 3, 2023
@jrgemignani
jrgemignani merged commit aa8c265 into apache:PG13 Nov 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PG13 PostgreSQL13

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants