standby clone: fix data directory permissions handling for Pg11 and later

Previously, repmgr would forcibly change the permissions on a data
directory to 0700. However from PostgreSQL 11, 0750 is also valid,
so that value should not be changed.
This commit is contained in:
Ian Barwick
2020-12-01 11:42:56 +09:00
parent 89556d6488
commit f7e45863ad
5 changed files with 88 additions and 10 deletions

View File

@@ -46,12 +46,14 @@
<title>Bug fixes</title>
<para>
<itemizedlist>
<itemizedlist>
<listitem>
<para>
Fix parsing of <option>replication_type</option>. GitHub #672.
Configuration: fix parsing of <option>replication_type</option>. GitHub #672.
</para>
</listitem>
<listitem>
<para>
<link linkend="repmgr-standby-clone">repmgr standby clone</link>:
@@ -60,6 +62,14 @@
</para>
</listitem>
<listitem>
<para>
<link linkend="repmgr-standby-clone">repmgr standby clone</link>:
in PostgreSQL 11 and later, an existing data directory's permissions
will not be changed to <option>0700</option> if they are already set to
<option>0750</option>.
</para>
</listitem>
<listitem>
<para>