Обсуждение: pgsql: Repair still another bug in the btree page split WAL reduction

Поиск
Список
Период
Сортировка

pgsql: Repair still another bug in the btree page split WAL reduction

От
tgl@postgresql.org (Tom Lane)
Дата:
Log Message:
-----------
Repair still another bug in the btree page split WAL reduction patch:
it failed for splits of non-leaf pages because in such pages the first
data key on a page is suppressed, and so we can't just copy the first
key from the right page to reconstitute the left page's high key.
Problem found by Koichi Suzuki, patch by Heikki.

Modified Files:
--------------
    pgsql/src/backend/access/nbtree:
        nbtinsert.c (r1.161 -> r1.162)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/access/nbtree/nbtinsert.c?r1=1.161&r2=1.162)
        nbtxlog.c (r1.48 -> r1.49)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/access/nbtree/nbtxlog.c?r1=1.48&r2=1.49)
    pgsql/src/include/access:
        nbtree.h (r1.114 -> r1.115)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/include/access/nbtree.h?r1=1.114&r2=1.115)