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 /contrib/pg_prewarm | |
| parent | 2520cf8c2a0a1d679094dffbd99871884e620ed5 (diff) | |
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
Diffstat (limited to 'contrib/pg_prewarm')
| -rw-r--r-- | contrib/pg_prewarm/pg_prewarm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/pg_prewarm/pg_prewarm.c b/contrib/pg_prewarm/pg_prewarm.c index b5ebac8f971..33e2d28b276 100644 --- a/contrib/pg_prewarm/pg_prewarm.c +++ b/contrib/pg_prewarm/pg_prewarm.c @@ -77,7 +77,7 @@ pg_prewarm(PG_FUNCTION_ARGS) if (PG_ARGISNULL(1)) ereport(ERROR, (errcode(ERRCODE_INVALID_PARAMETER_VALUE), - (errmsg("prewarm type cannot be null")))); + errmsg("prewarm type cannot be null"))); type = PG_GETARG_TEXT_PP(1); ttype = text_to_cstring(type); if (strcmp(ttype, "prefetch") == 0) @@ -97,7 +97,7 @@ pg_prewarm(PG_FUNCTION_ARGS) if (PG_ARGISNULL(2)) ereport(ERROR, (errcode(ERRCODE_INVALID_PARAMETER_VALUE), - (errmsg("relation fork cannot be null")))); + errmsg("relation fork cannot be null"))); forkName = PG_GETARG_TEXT_PP(2); forkString = text_to_cstring(forkName); forkNumber = forkname_to_number(forkString); |
