Fix nocachegetattr() so it again supports deforming cstrings c456e3911 added various optimizations to the tuple deformation routines. One optimization assumed that heap tuples would never contain cstrings. That optimization also made its way into nocachegetattr(), which isn't correct as ROW() types get formed into HeapTuples by ExecEvalRow() and those can contain cstring Datums. nocachegetattr() gets used to extract Datums from those tuples.
Here we remove the pg_assume(), which was there to instruct the compiler to omit the attlen == -2 related code in att_addlength_pointer(). Author: David Rowley <[email protected]> Reported-by: Alexander Lakhin <[email protected]> Discussion: https://postgr.es/m/[email protected] Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/331d829e62dbb08112bb3a2c5770cd10ba0ffccb Modified Files -------------- src/backend/access/common/heaptuple.c | 12 ------------ 1 file changed, 12 deletions(-)
