Skip to content

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

Merged
jrgemignani merged 1 commit into
apache:PG14from
rafsun42:issue_1347-PG14
Nov 3, 2023
Merged

jrgemignani merged 1 commit into
apache:PG14from
rafsun42:issue_1347-PG14

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

Labels

PG14 PostgreSQL14

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants