From: Tom Lane <tgl@sss.pgh.pa.us>
To: Michael Paquier <michael@paquier.xyz>
Cc: omerfaruko@gmail.com
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15810: Using custom directory on external HDD gives permission error
Date: Thu, 16 May 2019 19:59:33 -0400
Message-ID: <9610.1558051173@sss.pgh.pa.us> (raw)
In-Reply-To: <20190516234351.GC20887@paquier.xyz>
References: <15810-c9f666eb398e40b7@postgresql.org>
<20190516234351.GC20887@paquier.xyz>
Michael Paquier <michael@paquier.xyz> writes:
> On Thu, May 16, 2019 at 04:15:39PM +0000, PG Bug reporting form wrote:
>> Is there some way to circumvent this check without changing format
>> of the HDD?
> That's weird. If the data folder fed to initdb already exists and is
> empty, then permissions on the path are enforced to 0700 or 0750 (if
> using --allow-group-access) automatically to prevent this error when
> starting Postgres for bootstrapping.
I think we do a chmod but we don't then check to see if stat reports
the correct permissions. IIUC, the reporter is using a filesystem
that lacks permissions altogether and is just ignoring the chmod.
So later checks fail.
I'm kind of disinclined to provide a way to skip the permissions
check though, especially in view of the fact that there's no good
reason to use a Windows filesystem as native storage for Unix.
There are other things that are likely to not work either, eg
symlinks for tablespaces.
regards, tom lane
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-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, michael@paquier.xyz, omerfaruko@gmail.com
Subject: Re: BUG #15810: Using custom directory on external HDD gives permission error
In-Reply-To: <9610.1558051173@sss.pgh.pa.us>
References: <15810-c9f666eb398e40b7@postgresql.org> <20190516234351.GC20887@paquier.xyz> <9610.1558051173@sss.pgh.pa.us>
* 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