From 4e89c79a52f8a898edd648b56a00f0f4f840cfe7 Mon Sep 17 00:00:00 2001 From: Alvaro Herrera Date: Thu, 30 Jan 2020 13:32:04 -0300 Subject: 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 --- src/backend/replication/logical/logical.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/backend/replication/logical/logical.c') diff --git a/src/backend/replication/logical/logical.c b/src/backend/replication/logical/logical.c index cf932006188..e3da7d36250 100644 --- a/src/backend/replication/logical/logical.c +++ b/src/backend/replication/logical/logical.c @@ -390,13 +390,13 @@ CreateDecodingContext(XLogRecPtr start_lsn, if (SlotIsPhysical(slot)) ereport(ERROR, (errcode(ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE), - (errmsg("cannot use physical replication slot for logical decoding")))); + errmsg("cannot use physical replication slot for logical decoding"))); if (slot->data.database != MyDatabaseId) ereport(ERROR, (errcode(ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE), - (errmsg("replication slot \"%s\" was not created in this database", - NameStr(slot->data.name))))); + errmsg("replication slot \"%s\" was not created in this database", + NameStr(slot->data.name)))); if (start_lsn == InvalidXLogRecPtr) { -- cgit v1.2.3