postgresql/src/include/nodes
David Rowley e3f9dcabd6 Ensure we allocate NAMEDATALEN bytes for names in Index Only Scans
As an optimization, we store "name" columns as cstrings in btree
indexes.

Here we modify it so that Index Only Scans convert these cstrings back
to names with NAMEDATALEN bytes rather than storing the cstring in the
tuple slot, as was happening previously.

Bug: #17855
Reported-by: Alexander Lakhin
Reviewed-by: Alexander Lakhin, Tom Lane
Discussion: https://postgr.es/m/17855-5f523e0f9769a566@postgresql.org
Backpatch-through: 12, all supported versions
2024-05-01 13:23:25 +12:00
..
bitmapset.h Add support for multivariate MCV lists 2019-03-27 18:32:18 +01:00
execnodes.h Ensure we allocate NAMEDATALEN bytes for names in Index Only Scans 2024-05-01 13:23:25 +12:00
extensible.h Phase 2 pgindent run for v12. 2019-05-22 13:04:48 -04:00
lockoptions.h Don't include heapam.h from others headers. 2019-01-14 16:24:41 -08:00
makefuncs.h Fix handling of expressions and predicates in REINDEX CONCURRENTLY 2019-07-29 10:01:09 +09:00
memnodes.h Update copyright for 2019 2019-01-02 12:44:25 -05:00
nodeFuncs.h Suppress unnecessary RelabelType nodes in yet more cases. 2020-08-19 14:07:49 -04:00
nodes.h Phase 2 pgindent run for v12. 2019-05-22 13:04:48 -04:00
params.h Refactor ParamListInfo initialization 2019-03-14 13:30:09 +01:00
parsenodes.h Fix ENABLE/DISABLE TRIGGER to handle recursion correctly 2022-08-05 09:47:02 +02:00
pathnodes.h Update comments on CustomPath struct. 2023-08-03 17:15:08 +09:00
pg_list.h Standardize some more loops that chase down parallel lists. 2019-02-28 14:25:01 -05:00
plannodes.h Fix index-only scan plans, take 2. 2022-01-03 15:42:27 -05:00
primnodes.h Fix MULTIEXPR_SUBLINK with partitioned target tables, yet again. 2023-02-25 14:44:14 -05:00
print.h Phase 2 pgindent run for v12. 2019-05-22 13:04:48 -04:00
readfuncs.h Update copyright for 2019 2019-01-02 12:44:25 -05:00
replnodes.h Update copyright for 2019 2019-01-02 12:44:25 -05:00
supportnodes.h Allow extensions to generate lossy index conditions. 2019-02-11 21:26:14 -05:00
tidbitmap.h Phase 2 pgindent run for v12. 2019-05-22 13:04:48 -04:00
value.h Update copyright for 2019 2019-01-02 12:44:25 -05:00