Re: Reading recovery.conf earlier - Mailing list pgsql-hackers

From Fujii Masao
Subject Re: Reading recovery.conf earlier
Date
Msg-id 3f0b79eb0912070226r4ffdd7a1x463612515c3970eb@mail.gmail.com
Whole thread Raw
In response to Re: Reading recovery.conf earlier  (Simon Riggs <simon@2ndQuadrant.com>)
Responses Re: Reading recovery.conf earlier  (Simon Riggs <simon@2ndQuadrant.com>)
List pgsql-hackers
On Mon, Dec 7, 2009 at 5:28 PM, Simon Riggs <simon@2ndquadrant.com> wrote:
> If you really think that changing the file is a possibility between
> processes reading them, then I would just take a full temp copy of the
> file, read it in postmaster, read it in startup, then delete temp file.

This seems more robust because processes which are started long after
postmaster has started might use recovery.conf in the future (e.g.,
walreceiver in SR, read-only backends).

Also, in Windows, writing only non-default values into a temp file like
GUC is good for a process (like backend) which might be started many times.
Reading the full of the file every startup of such process would somewhat
harm the performance. Though, of course, this is overkill for your purpose.

Regards,

-- 
Fujii Masao
NIPPON TELEGRAPH AND TELEPHONE CORPORATION
NTT Open Source Software Center


pgsql-hackers by date:

Previous
From: Magnus Hagander
Date:
Subject: Re: Clearing global statistics
Next
From: Peter Eisentraut
Date:
Subject: Re: YAML Was: CommitFest status/management