pg_basebackup ignores the existing data directory permissions

From: Haribabu Kommi <kommi(dot)haribabu(at)gmail(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: pg_basebackup ignores the existing data directory permissions
Date: 2019-02-12 07:03:37
Message-ID: CAJrrPGdmQSbyRecDXe7gh-+En0qE1uJ2WbCOYjoDin3gOSH2wQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 Content-Type Size
0001-pg_basebackup-Correct-the-existing-directory-permiss.patch application/octet-stream 1.3 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Takashi Menjo 2019-02-12 07:06:53 Re: [HACKERS][PATCH] Applying PMDK to WAL operations for persistent memory
Previous Message Amit Langote 2019-02-12 06:41:15 Re: speeding up planning with partitions