We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40e6401 commit 0a49c95Copy full SHA for 0a49c95
src/backend/commands/user.c
@@ -245,7 +245,7 @@ CreateRole(CreateRoleStmt *stmt)
245
* Superusers get replication by default, but only if NOREPLICATION
246
* wasn't explicitly mentioned
247
*/
248
- if (!(disreplication && intVal(disreplication->arg) == 0))
+ if (issuper && !(disreplication && intVal(disreplication->arg) == 0))
249
isreplication = 1;
250
}
251
if (dinherit)
0 commit comments