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 1gz4Qe-0000C3-Ck for pgsql-general@arkaria.postgresql.org; Wed, 27 Feb 2019 18:59:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gz4Qc-000752-QR for pgsql-general@arkaria.postgresql.org; Wed, 27 Feb 2019 18:59:38 +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 1gz4Qc-00074v-Bg for pgsql-general@lists.postgresql.org; Wed, 27 Feb 2019 18:59:38 +0000 Received: from mail-oi1-x243.google.com ([2607:f8b0:4864:20::243]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gz4QZ-0002ce-GG for pgsql-general@lists.postgresql.org; Wed, 27 Feb 2019 18:59:37 +0000 Received: by mail-oi1-x243.google.com with SMTP id w66so14349191oia.4 for ; Wed, 27 Feb 2019 10:59:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=YGd4+CxeXasUTP/daZMKdC31TK3fJNdz2lsB+8jWF0A=; b=eW+X6sLr+TG5Gqj1n28Mv2nAml2/vPJSbARivJ0m4NELPLn4sQPg4/20GN5Dj+RNl7 r+ZUDIjEfr87slnLav9xenA3Lee/w4TIGpstUjzqeaswCG7vmn5EGa+OmFiwFWeOp23+ 0IHanZErMXays+h5LAOl1li1PsyYJA6owb3QypVBduTnE4UBwLoRO7hFRrpoN3ps+zDd 8LIDSF4bgX77i3+4OgiRCxJlM1pAY9ipzXoLKk0G7AKQEPclBGUWOO50Q6i67LeiOJko lKkYcsmKKFJd0cJvwHws+B0OggLLVcrDj4whZeUJJFBiaRcpcG9ymhkfZFDVvVHDC4fr QMLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=YGd4+CxeXasUTP/daZMKdC31TK3fJNdz2lsB+8jWF0A=; b=Y4vUc3A5aB3g4Fd1ofRnUQ7W5aSxih5vcVw8mhIJ6/Pplf6Ypem2gAwA3TxIEEwrsJ FgVSdCBP0NzERdqy6ZjJEVrs0dJhoMwHkU5yZMhyqapKO/nzW0gA6s2hneUMZjEJktsj u1I0SLg1SHKVINMhiYW+msBAeIF4GIgkVBIXMM3Wow8zGkoAw7DSw9nVzXdxfBgmzTt5 hWyv82tXoWGU6CjMxgyFwNGT6bTwcfgxz+07SYbfe7ezLqFdwqDx2MhJ+VVS8dzTsQIw OFQqP3sY4XPDxTrivkB8p0vrEfeZbRXKIoNamYKl1H/CNmS6wN6SNOVMM6iILQZjAJQi 4J/g== X-Gm-Message-State: AHQUAubf/DMNwArCmVz1Vi7NiLvPQ6IsGc/E3AzECAmXgd3kVrZxf2sp cvwkVgyTBvLaRKLh39zHFCZRlnor X-Google-Smtp-Source: APXvYqwz7UUNeWJH0Jw9J1cmNcTVHLULVt+XoiSqcaKLDHix10Of441MefXbqDuBkXurLfX49w9e8g== X-Received: by 2002:aca:4c10:: with SMTP id z16mr484820oia.53.1551293974199; Wed, 27 Feb 2019 10:59:34 -0800 (PST) Received: from [192.168.1.10] (ip70-171-116-89.no.no.cox.net. [70.171.116.89]) by smtp.googlemail.com with ESMTPSA id g128sm6964989oif.56.2019.02.27.10.59.33 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 27 Feb 2019 10:59:33 -0800 (PST) Subject: Re: why not using a mountpoint as PGDATA? To: pgsql-general@lists.postgresql.org References: <14944.1551282132@sss.pgh.pa.us> <20190227164912.ty6rx2t7gjvn2lo3@hjp.at> <2235949b-a1a6-662f-d4b1-23d5fc10d182@joeconway.com> From: Ron Message-ID: <110a729c-3152-40d8-b0cd-af8ef4adff29@gmail.com> Date: Wed, 27 Feb 2019 12:59:32 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <2235949b-a1a6-662f-d4b1-23d5fc10d182@joeconway.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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 writes: >>>> On Wed, Feb 27, 2019 at 12:33 PM Julien Rouhaud 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#dfc38927745e238d49569ffd5b33beba 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.