mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +03:00
Remove excess parens in ereport() calls
Cosmetic cleanup, not worth backpatching. Discussion: https://postgr.es/m/20200129200401.GA6303@alvherre.pgsql Reviewed-by: Tom Lane, Michael Paquier
This commit is contained in:
@@ -31,7 +31,7 @@ check_permissions(void)
|
||||
if (!superuser() && !has_rolreplication(GetUserId()))
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_INSUFFICIENT_PRIVILEGE),
|
||||
(errmsg("must be superuser or replication role to use replication slots"))));
|
||||
errmsg("must be superuser or replication role to use replication slots")));
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -669,7 +669,7 @@ copy_replication_slot(FunctionCallInfo fcinfo, bool logical_slot)
|
||||
Assert(!logical_slot);
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
|
||||
(errmsg("cannot copy a replication slot that doesn't reserve WAL"))));
|
||||
errmsg("cannot copy a replication slot that doesn't reserve WAL")));
|
||||
}
|
||||
|
||||
/* Overwrite params from optional arguments */
|
||||
|
Reference in New Issue
Block a user