Re: Extending outfuncs support to utility statements
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alexander Lakhin <exclusion@gmail.com>
Cc: Peter Eisentraut <peter.eisentraut@enterprisedb.com>,
Andres Freund <andres@anarazel.de>, pgsql-hackers@lists.postgresql.org
Date: 2023-03-19T18:22:10Z
Lists: pgsql-hackers
Alexander Lakhin <exclusion@gmail.com> writes: > Please look at the function _readA_Const() (introduced in a6bc33019), which fails on current master under valgrind: > ... > Here _readA_Const() performs: > union ValUnion *tmp = nodeRead(NULL, 0); > memcpy(&local_node->val, tmp, sizeof(*tmp)); > where sizeof(union ValUnion) = 16, but nodeRead()->makeInteger() produced Integer (sizeof(Integer) = 8). Right, so we can't get away without a switch-on-value-type like the other functions for A_Const have. Will fix. regards, tom lane
Commits
-
Avoid copying undefined data in _readA_Const().
- e060cd59fabd 16.0 landed
-
Enable WRITE_READ_PARSE_PLAN_TREES of rewritten utility statements
- 787102b56373 16.0 landed
-
Implement WRITE_READ_PARSE_PLAN_TREES for raw parse trees
- 40ad8f9deed2 16.0 landed
-
Don't lose precision for float fields of Nodes.
- acd624644bc4 16.0 landed
-
Fix write/read of empty string fields in Nodes.
- 8999f5ed3cd7 16.0 landed
-
Add read support for some missing raw parse nodes
- a6bc3301925e 16.0 landed
-
Fix reading of BitString nodes
- 2cb1a5a8d4ae 16.0 landed
-
Fix reading of most-negative integer value nodes
- 43f4b349152d 16.0 landed