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/bin/initdb | |
| 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/bin/initdb')
| -rw-r--r-- | src/bin/initdb/initdb.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/bin/initdb/initdb.c b/src/bin/initdb/initdb.c index 4968fc783e8..da40d7ab678 100644 --- a/src/bin/initdb/initdb.c +++ b/src/bin/initdb/initdb.c @@ -1235,11 +1235,6 @@ setup_config(void) "@authcomment@", (strcmp(authmethodlocal, "trust") == 0 || strcmp(authmethodhost, "trust") == 0) ? AUTHTRUST_WARNING : ""); - /* Replace username for replication */ - conflines = replace_token(conflines, - "@default_username@", - username); - snprintf(path, sizeof(path), "%s/pg_hba.conf", pg_data); writefile(path, conflines); |
