pgsql: Ensure we allocate NAMEDATALEN bytes for names in Index Only Sca
В списке pgsql-committers по дате отправления:
| От | David Rowley |
|---|---|
| Тема | pgsql: Ensure we allocate NAMEDATALEN bytes for names in Index Only Sca |
| Дата | |
| Msg-id | E1s1ygT-000sTM-Rq@gemulon.postgresql.org обсуждение исходный текст |
| Список | pgsql-committers |
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 Branch ------ REL_14_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/e6b0efc65e5885a0e46050df341c88f4a5ee76cd Modified Files -------------- src/backend/executor/nodeIndexonlyscan.c | 95 +++++++++++++++++++++++++-- src/include/catalog/pg_opclass.dat | 7 +- src/include/nodes/execnodes.h | 4 ++ src/test/regress/expected/index_including.out | 25 +++++++ src/test/regress/sql/index_including.sql | 19 ++++++ 5 files changed, 141 insertions(+), 9 deletions(-)
В списке pgsql-committers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера