mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +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:
@ -195,7 +195,7 @@ hash_page_type(PG_FUNCTION_ARGS)
|
||||
if (!superuser())
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_INSUFFICIENT_PRIVILEGE),
|
||||
(errmsg("must be superuser to use raw page functions"))));
|
||||
errmsg("must be superuser to use raw page functions")));
|
||||
|
||||
page = verify_hash_page(raw_page, 0);
|
||||
|
||||
@ -243,7 +243,7 @@ hash_page_stats(PG_FUNCTION_ARGS)
|
||||
if (!superuser())
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_INSUFFICIENT_PRIVILEGE),
|
||||
(errmsg("must be superuser to use raw page functions"))));
|
||||
errmsg("must be superuser to use raw page functions")));
|
||||
|
||||
page = verify_hash_page(raw_page, LH_BUCKET_PAGE | LH_OVERFLOW_PAGE);
|
||||
|
||||
@ -310,7 +310,7 @@ hash_page_items(PG_FUNCTION_ARGS)
|
||||
if (!superuser())
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_INSUFFICIENT_PRIVILEGE),
|
||||
(errmsg("must be superuser to use raw page functions"))));
|
||||
errmsg("must be superuser to use raw page functions")));
|
||||
|
||||
if (SRF_IS_FIRSTCALL())
|
||||
{
|
||||
@ -415,7 +415,7 @@ hash_bitmap_info(PG_FUNCTION_ARGS)
|
||||
if (!superuser())
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_INSUFFICIENT_PRIVILEGE),
|
||||
(errmsg("must be superuser to use raw page functions"))));
|
||||
errmsg("must be superuser to use raw page functions")));
|
||||
|
||||
indexRel = index_open(indexRelid, AccessShareLock);
|
||||
|
||||
@ -526,7 +526,7 @@ hash_metapage_info(PG_FUNCTION_ARGS)
|
||||
if (!superuser())
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_INSUFFICIENT_PRIVILEGE),
|
||||
(errmsg("must be superuser to use raw page functions"))));
|
||||
errmsg("must be superuser to use raw page functions")));
|
||||
|
||||
page = verify_hash_page(raw_page, LH_META_PAGE);
|
||||
|
||||
|
Reference in New Issue
Block a user