Re: [PATCHES] Bug in WAL backup documentation - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [PATCHES] Bug in WAL backup documentation
Date
Msg-id 14478.1162745376@sss.pgh.pa.us
Whole thread Raw
In response to Re: [PATCHES] Bug in WAL backup documentation  ("Simon Riggs" <simon@2ndquadrant.com>)
Responses Re: [PATCHES] Bug in WAL backup documentation  ("Simon Riggs" <simon@2ndquadrant.com>)
Re: [PATCHES] Bug in WAL backup documentation  (Bruno Wolff III <bruno@wolff.to>)
List pgsql-hackers
"Simon Riggs" <simon@2ndquadrant.com> writes:
> I'm pretty sure most people don't move live postmasters very frequently,
> plus it isn't clear to me why we should support the people that want
> that to do that, yet not the people who want the absolute-path option.

As already discussed upthread, anyone who wants the path can get it from
`pwd` or local equivalent --- and that mechanism is robust (as long as
the directory move doesn't happen while any particular instance of the
script is running).  I don't see why we should go out of our way to
provide a bad substitute for pwd.

BTW, I note that some post-startup uses of DataDir have crept back in,
in places like utils/adt/dbsize.c.  I'll be sure to clean those up
before release...

            regards, tom lane

pgsql-hackers by date:

Previous
From: "Simon Riggs"
Date:
Subject: Re: [PATCHES] Bug in WAL backup documentation
Next
From: Tom Lane
Date:
Subject: Re: Proposal: vacuum and autovacuum parameters to control freezing