pgsql: Minor adjustments to make failures in startup/shutdown behave

Поиск
Список
Период
Сортировка
От tgl@postgresql.org (Tom Lane)
Тема pgsql: Minor adjustments to make failures in startup/shutdown behave
Дата
Msg-id 20061130182912.D743D9FA170@postgresql.org
обсуждение исходный текст
Список pgsql-committers
Log Message:
-----------
Minor adjustments to make failures in startup/shutdown behave more cleanly.
StartupXLOG and ShutdownXLOG no longer need to be critical sections, because
in all contexts where they are invoked, elog(ERROR) would be translated to
elog(FATAL) anyway.  (One change in bgwriter.c is needed to make this true:
set ExitOnAnyError before trying to exit.  This is a good fix anyway since
the existing code would have gone into an infinite loop on elog(ERROR) during
shutdown.)  That avoids a misleading report of PANIC during semi-orderly
failures.  Modify the postmaster to include the startup process in the set of
processes that get SIGTERM when a fast shutdown is requested, and also fix it
to not try to restart the bgwriter if the bgwriter fails while trying to write
the shutdown checkpoint.  Net result is that "pg_ctl stop -m fast" does
something reasonable for a system in warm standby mode, and so should Unix
system shutdown (ie, universal SIGTERM).  Per gripe from Stephen Harris and
some corner-case testing of my own.

Modified Files:
--------------
    pgsql/src/backend/access/transam:
        xlog.c (r1.257 -> r1.258)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/access/transam/xlog.c.diff?r1=1.257&r2=1.258)
    pgsql/src/backend/postmaster:
        bgwriter.c (r1.31 -> r1.32)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/postmaster/bgwriter.c.diff?r1=1.31&r2=1.32)
        postmaster.c (r1.504 -> r1.505)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/postmaster/postmaster.c.diff?r1=1.504&r2=1.505)

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

Предыдущее
От: qnex@pgfoundry.org (User Qnex)
Дата:
Сообщение: press - pr: And a place update.
Следующее
От: petere@postgresql.org (Peter Eisentraut)
Дата:
Сообщение: pgsql: Fix typos