pgsql: Fix handling of empty uncompressed posting list pages in GIN

Поиск
Список
Период
Сортировка
От Alexander Korotkov
Тема pgsql: Fix handling of empty uncompressed posting list pages in GIN
Дата
Msg-id E1fgDb9-0004z7-PO@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Fix handling of empty uncompressed posting list pages in GIN

PostgreSQL 9.4 introduces posting list compression in GIN.  This feature
supports online upgrade, so that after pg_upgrade uncompressed posting
lists are compressed on-the-fly.  Underlying code appears to always
expect at least one item on uncompressed posting list page.  But there
could be completely empty pages, because VACUUM never deletes leftmost
and rightmost pages from posting trees.  This commit fixes that.

Reported-by: Sivasubramanian Ramasubramanian
Discussion: https://postgr.es/m/1531867212836.63354%40amazon.com
Author: Sivasubramanian Ramasubramanian, Alexander Korotkov
Backpatch-through: 9.4

Branch
------
REL9_5_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/3c09b032afe548a4f0c3fd0658957650c3e22832

Modified Files
--------------
src/backend/access/gin/gindatapage.c | 20 ++++++++++++--------
src/backend/access/gin/ginxlog.c     | 27 +++++++++++++++++++++------
2 files changed, 33 insertions(+), 14 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Alexander Korotkov
Дата:
Сообщение: pgsql: Fix handling of empty uncompressed posting list pages in GIN
Следующее
От: Alexander Korotkov
Дата:
Сообщение: pgsql: Fix handling of empty uncompressed posting list pages in GIN