pgsql: Ensure we allocate NAMEDATALEN bytes for names in Index Only Sca

2024-04-30 Thread David Rowley
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,

pgsql: Ensure we allocate NAMEDATALEN bytes for names in Index Only Sca

2024-04-30 Thread David Rowley
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,

pgsql: Ensure we allocate NAMEDATALEN bytes for names in Index Only Sca

2024-04-30 Thread David Rowley
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,

pgsql: Ensure we allocate NAMEDATALEN bytes for names in Index Only Sca

2024-04-30 Thread David Rowley
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,

pgsql: Ensure we allocate NAMEDATALEN bytes for names in Index Only Sca

2024-04-30 Thread David Rowley
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,

pgsql: Ensure we allocate NAMEDATALEN bytes for names in Index Only Sca

2024-04-30 Thread David Rowley
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,