diff options
| author | Alvaro Herrera | 2020-01-30 16:32:04 +0000 |
|---|---|---|
| committer | Alvaro Herrera | 2020-01-30 16:32:04 +0000 |
| commit | 4e89c79a52f8a898edd648b56a00f0f4f840cfe7 (patch) | |
| tree | ba259edb0559281eaf0953d6995781b264a1aec7 /src/backend/replication/slotfuncs.c | |
| parent | 2520cf8c2a0a1d679094dffbd99871884e620ed5 (diff) | |
Remove excess parens in ereport() calls
Cosmetic cleanup, not worth backpatching.
Discussion: https://postgr.es/m/[email protected]
Reviewed-by: Tom Lane, Michael Paquier
Diffstat (limited to 'src/backend/replication/slotfuncs.c')
| -rw-r--r-- | src/backend/replication/slotfuncs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/replication/slotfuncs.c b/src/backend/replication/slotfuncs.c index e4c4401b686..2c9d5de6d90 100644 --- a/src/backend/replication/slotfuncs.c +++ b/src/backend/replication/slotfuncs.c @@ -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 */ |
