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

Lines changed: 2 additions & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy