From: Tom Lane <tgl@sss.pgh.pa.us>
To: Omer Ozarslan <omerfaruko@gmail.com>
Cc: Michael Paquier <michael@paquier.xyz>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15810: Using custom directory on external HDD gives permission error
Date: Thu, 16 May 2019 23:43:56 -0400
Message-ID: <17117.1558064636@sss.pgh.pa.us> (raw)
In-Reply-To: <CAMsVCmV05-RioKDHLKj-Z9Xinm9YiQtcC5YO-BxYzEeuvZqtHw@mail.gmail.com>
References: <15810-c9f666eb398e40b7@postgresql.org>
<20190516234351.GC20887@paquier.xyz>
<9610.1558051173@sss.pgh.pa.us>
<CAMsVCmV05-RioKDHLKj-Z9Xinm9YiQtcC5YO-BxYzEeuvZqtHw@mail.gmail.com>
Omer Ozarslan <omerfaruko@gmail.com> writes:
> On Thu, May 16, 2019 at 6:59 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> 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.
> Would it be possible to provide a way to skip permission check and then let
> it fail in case user needs to use these specific features? I don't expect
> to use tablespaces for example. Does lack of these permissions (or other
> unix fs features like symlinks) bring some limitations to the point the
> database cannot function at all?
We consider it insecure (because it is) and we won't support it.
This is not very different from the complaints we occasionally get
about Postgres not being willing to run as root. That is also a bad
idea, and we won't support that either, regardless of any argument
that might be made that it-makes-sense-in-my-niche-use-case.
In both cases, it's not that hard to hack the check out of the
source code if you are bound and determined to do so.
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, omerfaruko@gmail.com, michael@paquier.xyz
Subject: Re: BUG #15810: Using custom directory on external HDD gives permission error
In-Reply-To: <17117.1558064636@sss.pgh.pa.us>
References: <15810-c9f666eb398e40b7@postgresql.org> <20190516234351.GC20887@paquier.xyz> <9610.1558051173@sss.pgh.pa.us> <CAMsVCmV05-RioKDHLKj-Z9Xinm9YiQtcC5YO-BxYzEeuvZqtHw@mail.gmail.com> <17117.1558064636@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