mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +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:
@ -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);
|
||||
|
Reference in New Issue
Block a user