Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit290bb9b

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. Backported from commited557a3.
1 parent159c47d commit290bb9b

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
@@ -490,6 +490,8 @@ check_role(const char *role, Oid roleid, char *param_str)
490490
return true;
491491
}
492492
elseif (strcmp(tok,role)==0||
493+
(strcmp(tok,"replication\n")==0&&
494+
strcmp(role,"replication")==0)||
493495
strcmp(tok,"all\n")==0)
494496
return true;
495497
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp