diff options
author | Andrew Dunstan <andrew@dunslane.net> | 2011-04-10 14:51:26 -0400 |
---|---|---|
committer | Andrew Dunstan <andrew@dunslane.net> | 2011-04-10 14:51:26 -0400 |
commit | ed557a373c406bbb2a1843544ebbd856ca4cac47 (patch) | |
tree | e535ccea8ff09ca50aa3f4ceb6054c8397c2dfe8 /src | |
parent | bf50caf105a901c4f83ac1df3cdaf910c26694a4 (diff) | |
download | postgresql-ed557a373c406bbb2a1843544ebbd856ca4cac47.tar.gz postgresql-ed557a373c406bbb2a1843544ebbd856ca4cac47.zip |
Don't make "replication" magical as a user name, only as a database name, in pg_hba.conf.
Per gripe from Josh Berkus.
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/libpq/hba.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/backend/libpq/hba.c b/src/backend/libpq/hba.c index fdc29aaa72d..1f79c8fe007 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; } |