Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eorkQ-0006dY-W3 for pgsql-general@arkaria.postgresql.org; Thu, 22 Feb 2018 14:21:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eorkP-0004H6-S6 for pgsql-general@arkaria.postgresql.org; Thu, 22 Feb 2018 14:21:21 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eorkP-0004Gr-Kd for pgsql-general@lists.postgresql.org; Thu, 22 Feb 2018 14:21:21 +0000 Received: from eastrmfepo103.cox.net ([68.230.241.215]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1eorkF-0001vy-Dl for pgsql-general@lists.postgresql.org; Thu, 22 Feb 2018 14:21:19 +0000 Received: from eastrmimpo110.cox.net ([68.230.241.223]) by eastrmfepo103.cox.net (InterMail vM.8.01.05.28 201-2260-151-171-20160122) with ESMTP id <20180222142105.VXTH4084.eastrmfepo103.cox.net@eastrmimpo110.cox.net> for ; Thu, 22 Feb 2018 09:21:05 -0500 Received: from [192.168.1.10] ([70.171.109.83]) by eastrmimpo110.cox.net with cox id DqM41x00t1o04Vy01qM4Ux; Thu, 22 Feb 2018 09:21:04 -0500 X-CT-Class: Clean X-CT-Score: 0.00 X-CT-RefID: str=0001.0A020204.5A8ED1D0.021E,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0 X-CT-Spam: 0 X-Authority-Analysis: v=2.2 cv=HL2zLslv c=1 sm=1 tr=0 a=uCHdjGDeLqaieW9t8IbZ6A==:117 a=uCHdjGDeLqaieW9t8IbZ6A==:17 a=x7bEGLp0ZPQA:10 a=T11QR6bd6vIA:10 a=r77TgQKjGQsHNAKrUKIA:9 a=epTmVMiNAAAA:8 a=1_W9oknN61KrZwBbejcA:9 a=QEXdDO2ut3YA:10 a=1wDIiH70AAAA:8 a=k6UuhfNk4PmRd5Vymg4A:9 a=XBN-osjeakysMq1a:21 a=_W_S_7VecoQA:10 a=ndEWmUVY6Yapc0oHF_P4:22 a=uCsh6WI2SJRHIg0NT2Eg:22 X-CM-Score: 0.00 Authentication-Results: cox.net; auth=pass (PLAIN) smtp.auth=ron.l.johnson@cox.net Subject: Re: initdb when data/ folder has mount points To: pgsql-general@lists.postgresql.org References: <3eb5e598-e31d-83dd-e3f3-b1ca8c03117d@cox.net> <2762.1519257684@sss.pgh.pa.us> <20180222061639.GB3370@paquier.xyz> From: Ron Johnson Message-ID: <40496a1d-3b3e-e36e-48fc-9122a1610a52@cox.net> Date: Thu, 22 Feb 2018 08:21:04 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------1BC5BDCDD2BED7C6941C2543" Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------1BC5BDCDD2BED7C6941C2543 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit On 02/22/2018 07:22 AM, David Steele wrote: > 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. Is there a Best Practices wiki? (https://wiki.postgresql.org/wiki/Detailed_installation_guides is pretty old and thin.) -- Money Angular momentum makes the world go 'round. --------------1BC5BDCDD2BED7C6941C2543 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit
On 02/22/2018 07:22 AM, David Steele wrote:
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.

Is there a Best Practices wiki?  (https://wiki.postgresql.org/wiki/Detailed_installation_guides is pretty old and thin.)


--
Money Angular momentum makes the world go 'round.
--------------1BC5BDCDD2BED7C6941C2543--