pgsql: Arrange to fsync the contents of lockfiles (both postmaster.pid

Поиск
Список
Период
Сортировка
От tgl@postgresql.org (Tom Lane)
Тема pgsql: Arrange to fsync the contents of lockfiles (both postmaster.pid
Дата
Msg-id 20100816173317.8AD227541D7@cvs.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Log Message:
-----------
Arrange to fsync the contents of lockfiles (both postmaster.pid and the
socket lockfile) when writing them.  The lack of an fsync here may well
explain two different reports we've seen of corrupted lockfile contents,
which doesn't particularly bother the running server but can prevent a
new server from starting if the old one crashes.  Per suggestion from
Alvaro.

Back-patch to all supported versions.

Tags:
----
REL8_1_STABLE

Modified Files:
--------------
    pgsql/src/backend/utils/init:
        miscinit.c (r1.150.2.3 -> r1.150.2.4)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/init/miscinit.c?r1=1.150.2.3&r2=1.150.2.4)

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

Предыдущее
От: tgl@postgresql.org (Tom Lane)
Дата:
Сообщение: pgsql: Arrange to fsync the contents of lockfiles (both postmaster.pid
Следующее
От: tgl@postgresql.org (Tom Lane)
Дата:
Сообщение: pgsql: Arrange to fsync the contents of lockfiles (both postmaster.pid