mirror of
https://github.com/postgres/postgres.git
synced 2025-11-10 17:42:29 +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:
@@ -298,8 +298,8 @@ pg_create_restore_point(PG_FUNCTION_ARGS)
|
||||
if (RecoveryInProgress())
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE),
|
||||
(errmsg("recovery is in progress"),
|
||||
errhint("WAL control functions cannot be executed during recovery."))));
|
||||
errmsg("recovery is in progress"),
|
||||
errhint("WAL control functions cannot be executed during recovery.")));
|
||||
|
||||
if (!XLogIsNeeded())
|
||||
ereport(ERROR,
|
||||
|
||||
Reference in New Issue
Block a user