postgresql/src/backend
David Rowley e6b0efc65e 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:22:41 +12:00
..
access Update nbits_set in brin_bloom_union 2024-04-14 18:18:07 +02:00
bootstrap
catalog Fix confusion about the return rowtype of SQL-language procedures. 2024-03-12 18:16:10 -04:00
commands Close race condition between datfrozen and relfrozen updates. 2024-04-29 10:25:00 -07:00
executor Ensure we allocate NAMEDATALEN bytes for names in Index Only Scans 2024-05-01 13:22:41 +12:00
foreign
jit Fix illegal attribute propagation in LLVM JIT. 2024-04-10 12:15:07 +12:00
lib
libpq Disconnect if socket cannot be put into non-blocking mode 2024-03-12 10:18:51 +02:00
main
nodes
optimizer Fix generation of EC join conditions at the wrong plan level. 2024-04-16 11:22:39 -04:00
parser Fix type-checking of RECORD-returning functions in FROM, redux. 2024-04-15 12:56:56 -04:00
partitioning
po
port
postmaster Avoid deadlock during orphan temp table removal. 2024-04-02 14:59:04 -04:00
regex
replication
rewrite Disallow converting a table to a view within an outer SQL command. 2024-04-30 15:22:55 -04:00
snowball
statistics Fix incorrectly reported stats kind in "can't happen" ERROR 2024-03-05 16:18:42 +13:00
storage freespace: Don't return blocks past the end of the main fork. 2024-04-13 08:35:32 -07:00
tcop
tsearch
utils Detect more overflows in timestamp[tz]_pl_interval. 2024-04-28 13:42:13 -04:00
.gitignore
common.mk
Makefile
nls.mk