]> granicus.if.org Git - postgresql/commitdiff
Don't make "replication" magical as a user name, only as a database name, in pg_hba...
authorAndrew Dunstan <andrew@dunslane.net>
Sun, 10 Apr 2011 18:51:26 +0000 (14:51 -0400)
committerAndrew 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

index fdc29aaa72d3f081904153443c372edf0d5bd2b5..1f79c8fe007ff9882287728eb734e933b0f9be1c 100644 (file)
@@ -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;
        }