pgsql: Fix traversing to the deleted GIN page via downlink

Поиск
Список
Период
Сортировка
От Alexander Korotkov
Тема pgsql: Fix traversing to the deleted GIN page via downlink
Дата
Msg-id E1iXAqj-0001if-Bj@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Fix traversing to the deleted GIN page via downlink

Current GIN code appears to don't handle traversing to the deleted page via
downlink.  This commit fixes that by stepping right from the delete page like
we do in nbtree.

This commit also fixes setting 'deleted' flag to the GIN pages.  Now other page
flags are not erased once page is deleted.  That helps to keep our assertions
true if we arrive deleted page via downlink.

Discussion: https://postgr.es/m/CAPpHfdvMvsw-NcE5bRS7R1BbvA4BxoDnVVjkXC5W0Czvy9LVrg%40mail.gmail.com
Author: Alexander Korotkov
Reviewed-by: Peter Geoghegan
Backpatch-through: 9.4

Branch
------
REL9_4_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/1414821e1688c86266c5ecaad378086785152332

Modified Files
--------------
src/backend/access/gin/ginbtree.c    | 7 -------
src/backend/access/gin/gindatapage.c | 3 +++
src/backend/access/gin/ginvacuum.c   | 2 +-
src/backend/access/gin/ginxlog.c     | 2 +-
4 files changed, 5 insertions(+), 9 deletions(-)


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

Предыдущее
От: Alexander Korotkov
Дата:
Сообщение: pgsql: Fix traversing to the deleted GIN page via downlink
Следующее
От: Alexander Korotkov
Дата:
Сообщение: pgsql: Fix page modification outside of critical section in GIN