Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit ed557a3

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.
1 parent bf50caf commit ed557a3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/backend/libpq/hba.c

+2
Original file line numberDiff line numberDiff line change
@@ -492,6 +492,8 @@ check_role(const char *role, Oid roleid, char *param_str)
492492
return true;
493493
}
494494
else if (strcmp(tok, role) == 0 ||
495+
(strcmp(tok, "replication\n") == 0 &&
496+
strcmp(role,"replication") ==0) ||
495497
strcmp(tok, "all\n") == 0)
496498
return true;
497499
}

0 commit comments

Comments
 (0)