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 1eoqpD-0003UT-Mu for pgsql-general@arkaria.postgresql.org; Thu, 22 Feb 2018 13:22:15 +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 1eoqpC-0002b7-Px for pgsql-general@arkaria.postgresql.org; Thu, 22 Feb 2018 13:22:14 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eoqpC-0002ax-F2 for pgsql-general@lists.postgresql.org; Thu, 22 Feb 2018 13:22:14 +0000 Received: from mail.thelabyrinth.net ([45.56.70.56]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eoqp5-0007q0-7x for pgsql-general@lists.postgresql.org; Thu, 22 Feb 2018 13:22:13 +0000 Received: from Davids-iMac.local (unknown [173.169.74.224]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: dsteele) by mail.thelabyrinth.net (Postfix) with ESMTPSA id 0191854668; Thu, 22 Feb 2018 13:22:05 +0000 (UTC) Subject: Re: initdb when data/ folder has mount points To: Michael Paquier Cc: Ron Johnson , Tom Lane , "pgsql-general@lists.postgresql.org" References: <3eb5e598-e31d-83dd-e3f3-b1ca8c03117d@cox.net> <2762.1519257684@sss.pgh.pa.us> <20180222061639.GB3370@paquier.xyz> From: David Steele Message-ID: <3736b74f-1ff8-41b8-675d-7913cef23894@pgmasters.net> Date: Thu, 22 Feb 2018 08:22:04 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180222061639.GB3370@paquier.xyz> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="HnKMx6yWI299z1w3cBHQz5FKF9THxwjWZ" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --HnKMx6yWI299z1w3cBHQz5FKF9THxwjWZ Content-Type: multipart/mixed; boundary="sDlXmfHyYCUC0kL8oQ00MKomwrMd7YCOy"; protected-headers="v1" From: David Steele To: Michael Paquier Cc: Ron Johnson , Tom Lane , "pgsql-general@lists.postgresql.org" Message-ID: <3736b74f-1ff8-41b8-675d-7913cef23894@pgmasters.net> Subject: Re: initdb when data/ folder has mount points References: <3eb5e598-e31d-83dd-e3f3-b1ca8c03117d@cox.net> <2762.1519257684@sss.pgh.pa.us> <20180222061639.GB3370@paquier.xyz> In-Reply-To: <20180222061639.GB3370@paquier.xyz> --sDlXmfHyYCUC0kL8oQ00MKomwrMd7YCOy Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: quoted-printable 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 somebo= dy >> starts reading them. >=20 > 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.=20 Yes, I really should have said having pg_log in the data directory at all is not ideal, symlinked or no. --=20 -David david@pgmasters.net --sDlXmfHyYCUC0kL8oQ00MKomwrMd7YCOy-- --HnKMx6yWI299z1w3cBHQz5FKF9THxwjWZ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIzBAEBCgAdFiEEDkRHqfbjxwCMp7jigDa4glDlIUAFAlqOw/0ACgkQgDa4glDl IUCRng//T4ghzG99pABelUtKRJY7wg9CfveUSh41piR9LGYbMh2XLOOSQUrlzGXW 9ClXzt4qqQ+/2YZ7+Klr0w6MRPNKEE6xUzJ9ttzBFbqfzdNTRCZH4pzou/d4AEBD SX+UJDgytQmPer7sIeIncfQFgZejieEVmCts6W8196ogEKYki6dzyhOyfAi/c6Mt TNbqhu0Ty7eKA0DxO5Xy7Rjztut31I0saArVnYdP5Pzym753WGu0GTBrvGT/dgky /5r1/oUJhGT7prts38Sux3UErWaaVWIE5BNHc6zyp9R/S3KKDDOL0VScj5kDp6k7 TmiVood6VtqncWndYW+0G79D4LLNrW8RQ9+zeXCeqvtRcFG/75VMc5CL3oEjWnrI 6BFh8PM64/dv8+OGu2SIEJ7tLdsL5c10fXnWEKZYhcI5cDiWKX0gtTG3Vo7Q8bL+ zVuCv7Ak8VfU2/tEuVCHnnTUUcCyc6nzYYX23ab+WjHQjqAd+Mx5chHYLkkaSm3X JL8uQiw+h/CdHS0B9qyEjkFgF89apnhinXtmk5jxw1l7TefoSlWIKc/IRLnNFoPf 37HqDW9V8icpLPlscVZtzBBHl4hmRAP1HIPnl6x2cW9pQIAMN5g+yZ9dJy29J9wQ Q8OXEodg/4v3Pjc0pZ25CpSRKX/DcTdh3uANIZrhtzNAuHH931Q= =1VNj -----END PGP SIGNATURE----- --HnKMx6yWI299z1w3cBHQz5FKF9THxwjWZ--