pgsql: Repair longstanding bug in slru/clog logic: it is possible for

Поиск
Список
Период
Сортировка
От tgl@postgresql.org (Tom Lane)
Тема pgsql: Repair longstanding bug in slru/clog logic: it is possible for
Дата
Msg-id 20060121043854.C52B09DCB5D@postgresql.org
обсуждение исходный текст
Список pgsql-committers
Log Message:
-----------
Repair longstanding bug in slru/clog logic: it is possible for two backends
to try to create a log segment file concurrently, but the code erroneously
specified O_EXCL to open(), resulting in a needless failure.  Before 7.4,
it was even a PANIC condition :-(.  Correct code is actually simpler than
what we had, because we can just say O_CREAT to start with and not need a
second open() call.  I believe this accounts for several recent reports of
hard-to-reproduce "could not create file ...: File exists" errors in both
pg_clog and pg_subtrans.

Tags:
----
REL7_3_STABLE

Modified Files:
--------------
    pgsql/src/backend/access/transam:
        clog.c (r1.11.2.1 -> r1.11.2.2)

(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/access/transam/clog.c.diff?r1=1.11.2.1&r2=1.11.2.2)

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

Предыдущее
От: tgl@postgresql.org (Tom Lane)
Дата:
Сообщение: pgsql: Repair longstanding bug in slru/clog logic: it is possible for
Следующее
От: andrewd@pgfoundry.org (User Andrewd)
Дата:
Сообщение: pgbuildfarm - client-code: - add ipcclean option to clean up shared