projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf50caf
)
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>
Sun, 10 Apr 2011 18:51:26 +0000
(14:51 -0400)
Per gripe from Josh Berkus.
src/backend/libpq/hba.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/libpq/hba.c
b/src/backend/libpq/hba.c
index fdc29aaa72d3f081904153443c372edf0d5bd2b5..1f79c8fe007ff9882287728eb734e933b0f9be1c 100644
(file)
--- a/
src/backend/libpq/hba.c
+++ b/
src/backend/libpq/hba.c
@@
-492,6
+492,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;
}