From: Andrew Dunstan Date: Sun, 10 Apr 2011 18:51:26 +0000 (-0400) Subject: Don't make "replication" magical as a user name, only as a database name, in pg_hba... X-Git-Tag: REL9_1_BETA1~119 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ed557a373c406bbb2a1843544ebbd856ca4cac47;p=postgresql Don't make "replication" magical as a user name, only as a database name, in pg_hba.conf. Per gripe from Josh Berkus. --- diff --git a/src/backend/libpq/hba.c b/src/backend/libpq/hba.c index fdc29aaa72..1f79c8fe00 100644 --- a/src/backend/libpq/hba.c +++ b/src/backend/libpq/hba.c @@ -492,6 +492,8 @@ check_role(const char *role, Oid roleid, char *param_str) return true; } else if (strcmp(tok, role) == 0 || + (strcmp(tok, "replication\n") == 0 && + strcmp(role,"replication") ==0) || strcmp(tok, "all\n") == 0) return true; }