pgsql: Repair PANIC condition in hash indexes when a previous index

Поиск
Список
Период
Сортировка
От tgl@postgresql.org (Tom Lane)
Тема pgsql: Repair PANIC condition in hash indexes when a previous index
Дата
Msg-id 20070419202410.EAF709FB60E@postgresql.org
обсуждение исходный текст
Список pgsql-committers
Log Message:
-----------
Repair PANIC condition in hash indexes when a previous index extension attempt
failed (due to lock conflicts or out-of-space).  We might have already
extended the index's filesystem EOF before failing, causing the EOF to be
beyond what the metapage says is the last used page.  Hence the invariant
maintained by the code needs to be "EOF is at or beyond last used page",
not "EOF is exactly the last used page".  Problem was created by my patch
of 2006-11-19 that attempted to repair bug #2737.  Since that was
back-patched to 7.4, this needs to be as well.  Per report and test case
from Vlastimil Krejcir.

Tags:
----
REL8_2_STABLE

Modified Files:
--------------
    pgsql/src/backend/access/hash:
        README (r1.4 -> r1.4.8.1)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/access/hash/README.diff?r1=1.4&r2=1.4.8.1)
        hashovfl.c (r1.53 -> r1.53.2.1)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/access/hash/hashovfl.c.diff?r1=1.53&r2=1.53.2.1)
        hashpage.c (r1.61 -> r1.61.2.1)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/access/hash/hashpage.c.diff?r1=1.61&r2=1.61.2.1)
    pgsql/src/include/access:
        hash.h (r1.73 -> r1.73.2.1)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/include/access/hash.h.diff?r1=1.73&r2=1.73.2.1)

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

Предыдущее
От: tgl@postgresql.org (Tom Lane)
Дата:
Сообщение: pgsql: Repair PANIC condition in hash indexes when a previous index
Следующее
От: tgl@postgresql.org (Tom Lane)
Дата:
Сообщение: pgsql: Repair PANIC condition in hash indexes when a previous index