Skip to content

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

Merged
jrgemignani merged 1 commit into
apache:PG12from
rafsun42:issue_1347-PG12
Nov 3, 2023
Merged

jrgemignani merged 1 commit into
apache:PG12from
rafsun42:issue_1347-PG12

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 PG12 PostgreSQL12 label Nov 3, 2023
@jrgemignani
jrgemignani merged commit c8f3b31 into apache:PG12 Nov 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PG12 PostgreSQL12

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants