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

From Haribabu Kommi
Subject pg_basebackup ignores the existing data directory permissions
Date
Msg-id CAJrrPGdmQSbyRecDXe7gh-+En0qE1uJ2WbCOYjoDin3gOSH2wQ@mail.gmail.com
Whole thread Raw
Responses Re: pg_basebackup ignores the existing data directory permissions  (Michael Paquier <michael@paquier.xyz>)
List pgsql-hackers
Hi Hackers,

During the testing allow group access permissions on the standby database directory,
one of my colleague found the issue, that pg_basebackup doesn't verify whether the existing data directory has the required permissions or not? This issue is not related allow group access permissions. This problem was present for a long time, (I think from the time the pg_basebackup was introduced).

Attached patch fixes the problem similar like initdb by changing the permissions of the data
directory to the required permissions.

Regards,
Haribabu Kommi
Fujitsu Australia
Attachment

pgsql-hackers by date:

Previous
From: Amit Langote
Date:
Subject: Re: speeding up planning with partitions
Next
From: "Takashi Menjo"
Date:
Subject: Re: [HACKERS][PATCH] Applying PMDK to WAL operations for persistent memory