summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/backend/commands/user.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/commands/user.c b/src/backend/commands/user.c
index 9c9164d3bc7..3f7d4992af8 100644
--- a/src/backend/commands/user.c
+++ b/src/backend/commands/user.c
@@ -245,7 +245,7 @@ CreateRole(CreateRoleStmt *stmt)
* Superusers get replication by default, but only if NOREPLICATION
* wasn't explicitly mentioned
*/
- if (!(disreplication && intVal(disreplication->arg) == 0))
+ if (issuper && !(disreplication && intVal(disreplication->arg) == 0))
isreplication = 1;
}
if (dinherit)