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

From Haribabu Kommi
Subject Re: pg_basebackup ignores the existing data directory permissions
Date
Msg-id CAJrrPGd2C1H3b3svQWgG2Y+ycXv5atLLeUF67amUtoh2KHTBYA@mail.gmail.com
Whole thread Raw
In response to Re: pg_basebackup ignores the existing data directory permissions  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
List pgsql-hackers

On Fri, Mar 29, 2019 at 9:05 PM Peter Eisentraut <peter.eisentraut@2ndquadrant.com> wrote:
On 2019-03-26 03:26, Michael Paquier wrote:
> Do we really want to extend the replication protocol to control that?

Perhaps we are losing sight of the original problem, which is that if
you create the target directory with the wrong permissions then ... it
has the wrong permissions.  And you are free to change the permissions
at any time.  Many of the proposed solutions sound excessively
complicated relative to that.

Yes, I agree that the proposed solution for fixing the original problem of existing
data directory permissions with new group options to pg_basebackup is a
big.

why can't we just fix the permissions of the directory by default as per the
source instance? I feel with this change, it may be useful to many people
than problem.

From understanding of the thread discussion,

+1 by:

Michael Paquier
Robert Haas
Haribabu Kommi

-1 by:

Magnus Hagander
Peter Eisentraut

Does any one want to weigh their opinion on this patch to consider best 
option for controlling the existing standby data directory permissions.

Regards,
Haribabu Kommi
Fujitsu Australia

pgsql-hackers by date:

Previous
From: David Rowley
Date:
Subject: Re: COPY FROM WHEN condition
Next
From: David Rowley
Date:
Subject: Re: Ordered Partitioned Table Scans