Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gz2Oa-0002ep-3G for pgsql-general@arkaria.postgresql.org; Wed, 27 Feb 2019 16:49:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gz2OX-0005aV-Ro for pgsql-general@arkaria.postgresql.org; Wed, 27 Feb 2019 16:49:21 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gz2OX-0005ZU-Ed for pgsql-general@lists.postgresql.org; Wed, 27 Feb 2019 16:49:21 +0000 Received: from mail.hjp.at ([212.17.106.138] helo=rorschach.hjp.at) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gz2OT-00085t-A4 for pgsql-general@lists.postgresql.org; Wed, 27 Feb 2019 16:49:20 +0000 Received: by rorschach.hjp.at (Postfix, from userid 1000) id F216725D7; Wed, 27 Feb 2019 17:49:12 +0100 (CET) Date: Wed, 27 Feb 2019 17:49:12 +0100 From: "Peter J. Holzer" To: pgsql-general@lists.postgresql.org Subject: Re: why not using a mountpoint as PGDATA? Message-ID: <20190227164912.ty6rx2t7gjvn2lo3@hjp.at> References: <14944.1551282132@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ru6cqyttzr2k3z35" Content-Disposition: inline In-Reply-To: <14944.1551282132@sss.pgh.pa.us> User-Agent: NeoMutt/20170113 (1.7.2) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --ru6cqyttzr2k3z35 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2019-02-27 10:42:12 -0500, Tom Lane wrote: > Luca Ferrari writes: > > On Wed, Feb 27, 2019 at 12:33 PM Julien Rouhaud wr= ote: > >> You can see most obvious reasons at > >> https://bugzilla.redhat.com/show_bug.cgi?id=3D1247477 [...] > The case that I can recall most clearly was actually in the other > direction: during system bootup, some NFS volume that was being abused > this way (mount point =3D=3D data dir) was slow to mount. Compounding the > problem, postgres was being started through some init script that would > helpfully run initdb if it saw the specified data directory was empty. > So, rather than failing like a properly paranoid DBA would wish, it > ran initdb and then started the postmaster. Ouch. I wonder though why that directory was writable by the postgres user. But maybe the helpful start script chown'ed it to fix the "wrong" permissions. hp --=20 _ | Peter J. Holzer | we build much bigger, better disasters now |_|_) | | because we have much more sophisticated | | | hjp@hjp.at | management tools. __/ | http://www.hjp.at/ | -- Ross Anderson --ru6cqyttzr2k3z35 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEETtJbRjyPwVTYGJ5k8g5IURL+KF0FAlx2v4QACgkQ8g5IURL+ KF0JEg/+IWgrQbcmiwGMty1ZTLVd05BHtobiZ9STbIYML4v5O0ZQRJXaBTIWiK0q rWqr66lExoZeEqSs1U+EeZNRR3e/0Fb2IO4yMVhWjCjjPeYxxsizHqnv6LzrdTYy IE/ar25NWu8j1X5lG+rsc8Y2rChki0rCbKkIPUJKmYuRhKGlME26MRMv4a0oRArd LaR0KTCsiKhuCaFC8feTMuIpzgKx4pj4Inoy3eq+4papc2caoGA/MItUPR5uuGNm jqumQk3UNYsOndXSg9x9Q6Qgf+mxtjskeT4QSHzkSJAvPdX1GmsgE6Uj9ckDFz28 2rHb9flGi5h92Vdo+oEhdHnK1cgA1ppWf8mK8wCsSCMuUaYTbzBXpw99ee0QlnOq tSzdPcOFCYkKCrt4GAjJdbX9jF9BIaSFy2xU0VzxzZ2Nl9VZAAv2tSYi43WIp46T TMLUhO9t+3/4vQHyGUEb2tRR2uDF06AvMhe4K9DsZTRNuIMz+K3IU7YUE3Fnnqv1 +52PLwXkdVK2jA8NAzMHLMk9iV7P755doJQTdVnWtGxwMrVO6Ifc4BUNIWGptOLv yBZ43n1FgpVfTDUTvYZS3BMTkM7kHxtfXsh5XjyOmfrYJpepzwk+eZ0oeVJSgTgv uwMtceOUu3PklarfVXlV64pEng2PCjy98xY0DfiDJtCz2x3NS4Q= =zxtK -----END PGP SIGNATURE----- --ru6cqyttzr2k3z35--