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