Skip to content

Commit 290bb9b

Browse files
committed
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 ed557a3.
1 parent 159c47d commit 290bb9b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/backend/libpq/hba.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -490,6 +490,8 @@ check_role(const char *role, Oid roleid, char *param_str)
490490
return true;
491491
}
492492
else if (strcmp(tok, role) == 0 ||
493+
(strcmp(tok, "replication\n") == 0 &&
494+
strcmp(role,"replication") ==0) ||
493495
strcmp(tok, "all\n") == 0)
494496
return true;
495497
}

0 commit comments

Comments
 (0)