pgsql: Fix ReadBuffer() to correctly handle the case where it's trying

Поиск
Список
Период
Сортировка
От tgl@postgresql.org (Tom Lane)
Тема pgsql: Fix ReadBuffer() to correctly handle the case where it's trying
Дата
Msg-id 20060106000433.DA50B9DCA94@postgresql.org
обсуждение исходный текст
Список pgsql-committers
Log Message:
-----------
Fix ReadBuffer() to correctly handle the case where it's trying to extend
the relation but it finds a pre-existing valid buffer.  The buffer does not
correspond to any page known to the kernel, so we *must* do smgrextend to
ensure that the space becomes allocated.  The 7.x branches all do this
correctly, but the corner case got lost somewhere during 8.0 bufmgr rewrites.
(My fault no doubt :-( ... I think I assumed that such a buffer must be
not-BM_VALID, which is not so.)

Tags:
----
REL8_0_STABLE

Modified Files:
--------------
    pgsql/src/backend/storage/buffer:
        bufmgr.c (r1.185 -> r1.185.4.1)

(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/storage/buffer/bufmgr.c.diff?r1=1.185&r2=1.185.4.1)

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

Предыдущее
От: tgl@postgresql.org (Tom Lane)
Дата:
Сообщение: pgsql: Fix ReadBuffer() to correctly handle the case where it's trying
Следующее
От: tgl@postgresql.org (Tom Lane)
Дата:
Сообщение: pgsql: Convert Assert checking for empty page into a regular test and