summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2017-03-10 12:17:56 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2017-03-10 12:17:56 -0500
commita83e4b4f31c7afa5f7360086ebb1916cc99a4dbe (patch)
tree96d3dbd8a85a1833a14cf4220673d32485ab1823
parent07a61e16703b5f90650d509e29a724c68efd79ab (diff)
Un-break things on IPv6-less platforms.
Commit be37c2120 forgot to teach initdb about commenting out the IPv6 replication entry that it caused to exist in pg_hba.conf.sample. Per buildfarm.
-rw-r--r--src/bin/initdb/initdb.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/bin/initdb/initdb.c b/src/bin/initdb/initdb.c
index 8bca635a3bc..3f836efc20f 100644
--- a/src/bin/initdb/initdb.c
+++ b/src/bin/initdb/initdb.c
@@ -1213,15 +1213,23 @@ setup_config(void)
if (err != 0 ||
getaddrinfo("::1", NULL, &hints, &gai_result) != 0)
+ {
conflines = replace_token(conflines,
"host all all ::1",
"#host all all ::1");
+ conflines = replace_token(conflines,
+ "host replication all ::1",
+ "#host replication all ::1");
+ }
}
#else /* !HAVE_IPV6 */
/* If we didn't compile IPV6 support at all, always comment it out */
conflines = replace_token(conflines,
"host all all ::1",
"#host all all ::1");
+ conflines = replace_token(conflines,
+ "host replication all ::1",
+ "#host replication all ::1");
#endif /* HAVE_IPV6 */
/* Replace default authentication methods */