diff options
| author | Peter Eisentraut | 2017-03-09 13:27:16 +0000 |
|---|---|---|
| committer | Peter Eisentraut | 2017-03-09 13:39:44 +0000 |
| commit | be37c2120a2a88e5ba852d42952c77b6bf5d5271 (patch) | |
| tree | c6862bda00c4392427b3a9c96836cac7fb21a3e3 /src/backend/libpq | |
| parent | 355d3993c53ed62c5b53d020648e4fbcfbf5f155 (diff) | |
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
Diffstat (limited to 'src/backend/libpq')
| -rw-r--r-- | src/backend/libpq/pg_hba.conf.sample | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/libpq/pg_hba.conf.sample b/src/backend/libpq/pg_hba.conf.sample index 73f7973ea2..6b1778a721 100644 --- a/src/backend/libpq/pg_hba.conf.sample +++ b/src/backend/libpq/pg_hba.conf.sample @@ -84,6 +84,6 @@ host all all 127.0.0.1/32 @authmethodhost@ host all all ::1/128 @authmethodhost@ # Allow replication connections from localhost, by a user with the # replication privilege. -@remove-line-for-nolocal@#local replication @default_username@ @authmethodlocal@ -#host replication @default_username@ 127.0.0.1/32 @authmethodhost@ -#host replication @default_username@ ::1/128 @authmethodhost@ +@remove-line-for-nolocal@local replication all @authmethodlocal@ +host replication all 127.0.0.1/32 @authmethodhost@ +host replication all ::1/128 @authmethodhost@ |
