1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-18 17:42:25 +03:00

Don't make "replication" magical as a user name, only as a database name, in pg_hba.conf.

Per gripe from Josh Berkus. Backported from commit ed557a373c.
This commit is contained in:
Andrew Dunstan
2011-04-10 14:51:26 -04:00
parent 159c47dc71
commit 290bb9b61c

View File

@ -490,6 +490,8 @@ check_role(const char *role, Oid roleid, char *param_str)
return true; return true;
} }
else if (strcmp(tok, role) == 0 || else if (strcmp(tok, role) == 0 ||
(strcmp(tok, "replication\n") == 0 &&
strcmp(role,"replication") ==0) ||
strcmp(tok, "all\n") == 0) strcmp(tok, "all\n") == 0)
return true; return true;
} }