Re: Comments to Synchronous replication patch v3 - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Comments to Synchronous replication patch v3
Date
Msg-id 26328.1227888627@sss.pgh.pa.us
Whole thread Raw
In response to Re: Comments to Synchronous replication patch v3  ("Fujii Masao" <masao.fujii@gmail.com>)
Responses Re: Comments to Synchronous replication patch v3  ("Fujii Masao" <masao.fujii@gmail.com>)
List 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 by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: Distinct types
Next
From: "David E. Wheeler"
Date:
Subject: Re: Distinct types