Re: initdb when data/ folder has mount points - Mailing list pgsql-general

From David Steele
Subject Re: initdb when data/ folder has mount points
Date
Msg-id 3736b74f-1ff8-41b8-675d-7913cef23894@pgmasters.net
Whole thread Raw
In response to Re: initdb when data/ folder has mount points  (Michael Paquier <michael@paquier.xyz>)
List pgsql-general
On 2/22/18 1:16 AM, Michael Paquier wrote:
> On Wed, Feb 21, 2018 at 07:56:38PM -0500, David Steele wrote:
>> On 2/21/18 7:01 PM, Tom Lane wrote:
>>> For pg_log, just put it somewhere else and set the appropriate
>>> configuration option to say where to write the postmaster log files.
>>> Or you could use a symlink, like the solution for pg_xlog, but
>>> I don't see any advantage there.
>>
>> Symlinking pg_log is not ideal because the logs end up in the backup. It
>> gets pretty weird when those logs get restored to a standby and somebody
>> starts reading them.
>
> log_directory in postgresql.conf san be set up with an absolute
> directory value.  So there is no actual need for a symlink with pg_log.
> This also reduces the amount of data transfered as part of base
> backups without actually needing them.

Yes, I really should have said having pg_log in the data directory at
all is not ideal, symlinked or no.

--
-David
david@pgmasters.net


Attachment

pgsql-general by date:

Previous
From: Julián Jiménez González
Date:
Subject: Re: Building PostgreSQL old version from source to test vulnerability CVE-2017-7546
Next
From: Ron Johnson
Date:
Subject: Re: initdb when data/ folder has mount points