mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +03:00
Enable replication connections by default in pg_hba.conf
initdb now initializes a pg_hba.conf that allows replication connections from the local host, same as it does for regular connections. The connecting user still needs to have the REPLICATION attribute or be a superuser. The intent is to allow pg_basebackup from the local host to succeed without requiring additional configuration. Michael Paquier <michael.paquier@gmail.com> and me
This commit is contained in:
@@ -120,11 +120,17 @@ PostgreSQL documentation
|
||||
<term><option>--auth=<replaceable class="parameter">authmethod</replaceable></option></term>
|
||||
<listitem>
|
||||
<para>
|
||||
This option specifies the authentication method for local users used
|
||||
in <filename>pg_hba.conf</> (<literal>host</literal>
|
||||
and <literal>local</literal> lines). Do not use <literal>trust</>
|
||||
unless you trust all local users on your system. <literal>trust</> is
|
||||
the default for ease of installation.
|
||||
This option specifies the default authentication method for local
|
||||
users used in <filename>pg_hba.conf</> (<literal>host</literal>
|
||||
and <literal>local</literal> lines). <command>initdb</command> will
|
||||
prepopulate <filename>pg_hba.conf</filename> entries using the
|
||||
specified authentication method for non-replication as well as
|
||||
replication connections.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
Do not use <literal>trust</> unless you trust all local users on your
|
||||
system. <literal>trust</> is the default for ease of installation.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
Reference in New Issue
Block a user