pgsql: Protect against torn pages when deleting GIN list pages.

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема pgsql: Protect against torn pages when deleting GIN list pages.
Дата
Msg-id E1WiMuD-0000F3-EZ@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Protect against torn pages when deleting GIN list pages.

To-be-deleted list pages contain no useful information, as they are being
deleted, but we must still protect the writes from being torn by a crash
after a partial write. To do that, re-initialize the pages on WAL replay.

Jeff Janes caught this with a test program to test partial writes.
Backpatch to all supported versions.

Branch
------
REL9_1_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/686a7194ef1676e4735bbe1c0270dc25c6f33796

Modified Files
--------------
src/backend/access/gin/ginxlog.c |   28 ++++++++++++++--------------
1 file changed, 14 insertions(+), 14 deletions(-)


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

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: pgsql: Protect against torn pages when deleting GIN list pages.
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: pgsql: Protect against torn pages when deleting GIN list pages.