Re: Comments to Synchronous replication patch v3

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Comments to Synchronous replication patch v3
Дата
Msg-id 26328.1227888627@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Comments to Synchronous replication patch v3  ("Fujii Masao" <masao.fujii@gmail.com>)
Ответы Re: Comments to Synchronous replication patch v3  ("Fujii Masao" <masao.fujii@gmail.com>)
Список pgsql-hackers
"Fujii Masao" <masao.fujii@gmail.com> writes:
>>> You export replication_timeout as a PGC_USERSET variable, but it is
>>> dangerous. It allows non-superusers to kill servers easily by setting it
>>> too low value. Walsender dies with FATAL on timeout.

> Unlike other background processes, FATAL by walsender doesn't kill the
> whole server. In FATAL case, walsender is treated like the normal backend,
> and only walsender dies. Please see reaper() in postmaster.c.

> Just to be safe, I re-export the parameter as PGC_SUSET in the latest
> patch. Is still this parameter dangerous?

If this parameter is only used by a background process, then both of
those are wrong.  It should be marked SIGHUP to reflect the fact that
the only effective way of modifying it is via postgresql.conf.
        regards, tom lane


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

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: Distinct types
Следующее
От: "David E. Wheeler"
Дата:
Сообщение: Re: Distinct types