Location via proxy:
[ UP ]
[Report a bug]
[Manage cookies]
No cookies
No scripts
No ads
No referrer
Show this form
projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
159c47d
)
Don't make "replication" magical as a user name, only as a database name, in pg_hba...
author
Andrew Dunstan
<andrew@dunslane.net>
Sun, 10 Apr 2011 18:51:26 +0000
(14:51 -0400)
committer
Andrew Dunstan
<andrew@dunslane.net>
Tue, 12 Apr 2011 11:44:23 +0000
(07:44 -0400)
Per gripe from Josh Berkus. Backported from commit
ed557a373c406bbb2a1843544ebbd856ca4cac47
.
src/backend/libpq/hba.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/libpq/hba.c
b/src/backend/libpq/hba.c
index 4e1cff3502c8888cf2c79f681b159311535cb627..c746c198f857301b2ad980e56e997a06a71bc556 100644
(file)
--- a/
src/backend/libpq/hba.c
+++ b/
src/backend/libpq/hba.c
@@
-490,6
+490,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;
}