pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: why not using a mountpoint as PGDATA?
Date: Wed, 27 Feb 2019 12:59:32 -0600
Message-ID: <110a729c-3152-40d8-b0cd-af8ef4adff29@gmail.com> (raw)
In-Reply-To: <2235949b-a1a6-662f-d4b1-23d5fc10d182@joeconway.com>
References: <CAKoxK+6H40imynM5P31bf0DnpN-5f5zeROjcaj6BKVAjxdEA9w@mail.gmail.com>
	<CAOBaU_aAp0gDP_ovqL2aDd_80bDHn805oL-dROxDCb9q4ySqxg@mail.gmail.com>
	<CAKoxK+57m-8pugYke+BYhYtPn4YYNJgzU8g21aMykEZmMdQgQw@mail.gmail.com>
	<14944.1551282132@sss.pgh.pa.us>
	<20190227164912.ty6rx2t7gjvn2lo3@hjp.at>
	<2235949b-a1a6-662f-d4b1-23d5fc10d182@joeconway.com>

On 2/27/19 12:43 PM, Joe Conway wrote:
> On 2/27/19 11:49 AM, Peter J. Holzer wrote:
>> On 2019-02-27 10:42:12 -0500, Tom Lane wrote:
>>> Luca Ferrari <fluca1978@gmail.com> writes:
>>>> On Wed, Feb 27, 2019 at 12:33 PM Julien Rouhaud <rjuju123@gmail.com> wrote:
>>>>> You can see most obvious reasons at
>>>>> https://bugzilla.redhat.com/show_bug.cgi?id=1247477
>> [...]
>>> 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 == 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.
> FWIW, if you want to read the whole gory details of that incident, here
> it is:
>
> https://www.postgresql.org/message-id/flat/41D04FA4.7010402%40joeconway.com#dfc38927745e238d49569ffd...

What in the world was that SuSE maintainer -- and the people who should have 
been looking over his shoulder -- thinking???


-- 
Angular momentum makes the world go 'round.




view thread (10+ messages)  latest in thread

Message-ID: <110a729c-3152-40d8-b0cd-af8ef4adff29@gmail.com>
Permalink:  ../110a729c-3152-40d8-b0cd-af8ef4adff29@gmail.com/
Also on:    postgresql.org/message-id/110a729c-3152-40d8-b0cd-af8ef4adff29@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: ronljohnsonjr@gmail.com
  Subject: Re: why not using a mountpoint as PGDATA?
  In-Reply-To: <110a729c-3152-40d8-b0cd-af8ef4adff29@gmail.com>
  References: <CAKoxK+6H40imynM5P31bf0DnpN-5f5zeROjcaj6BKVAjxdEA9w@mail.gmail.com> <CAOBaU_aAp0gDP_ovqL2aDd_80bDHn805oL-dROxDCb9q4ySqxg@mail.gmail.com> <CAKoxK+57m-8pugYke+BYhYtPn4YYNJgzU8g21aMykEZmMdQgQw@mail.gmail.com> <14944.1551282132@sss.pgh.pa.us> <20190227164912.ty6rx2t7gjvn2lo3@hjp.at> <2235949b-a1a6-662f-d4b1-23d5fc10d182@joeconway.com> <110a729c-3152-40d8-b0cd-af8ef4adff29@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox