Re: pg_basebackup ignores the existing data directory permissions - Mailing list pgsql-hackers

From Robert Haas
Subject Re: pg_basebackup ignores the existing data directory permissions
Date
Msg-id CA+TgmoaVo09Se=xYwBjhxpzuMK=SAG4v9QJC5YWKHcBZqUsfwA@mail.gmail.com
Whole thread Raw
In response to Re: pg_basebackup ignores the existing data directory permissions  (Michael Paquier <michael@paquier.xyz>)
Responses Re: pg_basebackup ignores the existing data directory permissions
List pgsql-hackers
On Mon, Mar 18, 2019 at 4:16 AM Michael Paquier <michael@paquier.xyz> wrote:
> On Mon, Mar 18, 2019 at 08:32:44AM +0100, Magnus Hagander wrote:
> > On Mon, Mar 18, 2019 at 7:08 AM Stephen Frost <sfrost@snowman.net> wrote:
> >> I definitely think that we should add an option to allow the user to
> >> tell us explicitly what they want here, even if we also go based on what
> >> the created directory has (and in that case, we should make everything,
> >> including the base directory, follow what the user asked for).
> >
> > +1 for having an option to override whatever the default is.
>
> Based on the feedback gathered, having a separate option to enforce
> the default and not touching the behavior implemented until now,
> sounds fine to me.

That's not what I'm proposing.  I think the behavior implemented until
now is not best, because the files within the directory should inherit
the directory's permissions, not the remote side's permissions.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


pgsql-hackers by date:

Previous
From: Hugh Ranalli
Date:
Subject: Re: Unaccent extension python script Issue in Windows
Next
From: Alvaro Herrera
Date:
Subject: Re: partitioned tables referenced by FKs