diff options
Diffstat (limited to 'src')
22 files changed, 52 insertions, 52 deletions
diff --git a/src/backend/access/transam/xlogfuncs.c b/src/backend/access/transam/xlogfuncs.c index d4e21f90a8e..20316539b6f 100644 --- a/src/backend/access/transam/xlogfuncs.c +++ b/src/backend/access/transam/xlogfuncs.c @@ -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, diff --git a/src/backend/commands/alter.c b/src/backend/commands/alter.c index 4dda38fa304..fca85ba2c17 100644 --- a/src/backend/commands/alter.c +++ b/src/backend/commands/alter.c @@ -212,8 +212,8 @@ AlterObjectRename_internal(Relation rel, Oid objectId, const char *new_name) if (Anum_owner <= 0) ereport(ERROR, (errcode(ERRCODE_INSUFFICIENT_PRIVILEGE), - (errmsg("must be superuser to rename %s", - getObjectDescriptionOids(classId, objectId))))); + errmsg("must be superuser to rename %s", + getObjectDescriptionOids(classId, objectId)))); /* Otherwise, must be owner of the existing object */ datum = heap_getattr(oldtup, Anum_owner, @@ -715,8 +715,8 @@ AlterObjectNamespace_internal(Relation rel, Oid objid, Oid nspOid) if (Anum_owner <= 0) ereport(ERROR, (errcode(ERRCODE_INSUFFICIENT_PRIVILEGE), - (errmsg("must be superuser to set schema of %s", - getObjectDescriptionOids(classId, objid))))); + errmsg("must be superuser to set schema of %s", + getObjectDescriptionOids(classId, objid)))); /* Otherwise, must be owner of the existing object */ owner = heap_getattr(tup, Anum_owner, RelationGetDescr(rel), &isnull); diff --git a/src/backend/commands/collationcmds.c b/src/backend/commands/collationcmds.c index 34c75e8b56f..85f726ae062 100644 --- a/src/backend/commands/collationcmds.c +++ b/src/backend/commands/collationcmds.c @@ -527,7 +527,7 @@ pg_import_system_collations(PG_FUNCTION_ARGS) if (!superuser()) ereport(ERROR, (errcode(ERRCODE_INSUFFICIENT_PRIVILEGE), - (errmsg("must be superuser to import system collations")))); + errmsg("must be superuser to import system collations"))); /* Load collations known to libc, using "locale -a" to enumerate them */ #ifdef READ_LOCALE_A_OUTPUT diff --git a/src/backend/commands/createas.c b/src/backend/commands/createas.c index 9f387b5f5f1..cc02cf824ed 100644 --- a/src/backend/commands/createas.c +++ b/src/backend/commands/createas.c @@ -537,7 +537,7 @@ intorel_startup(DestReceiver *self, int operation, TupleDesc typeinfo) if (check_enable_rls(intoRelationAddr.objectId, InvalidOid, false) == RLS_ENABLED) ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), - (errmsg("policies not yet implemented for this command")))); + errmsg("policies not yet implemented for this command"))); /* * Tentatively mark the target as populated, if it's a matview and we're diff --git a/src/backend/commands/functioncmds.c b/src/backend/commands/functioncmds.c index 0f40c9ee27b..540044b2d68 100644 --- a/src/backend/commands/functioncmds.c +++ b/src/backend/commands/functioncmds.c @@ -286,8 +286,8 @@ interpret_function_parameter_list(ParseState *pstate, if (fp->mode == FUNC_PARAM_OUT) ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), - (errmsg("procedures cannot have OUT arguments"), - errhint("INOUT arguments are permitted.")))); + errmsg("procedures cannot have OUT arguments"), + errhint("INOUT arguments are permitted."))); } /* handle input parameters */ diff --git a/src/backend/commands/publicationcmds.c b/src/backend/commands/publicationcmds.c index f96cb42adcd..eb4d22cc2a8 100644 --- a/src/backend/commands/publicationcmds.c +++ b/src/backend/commands/publicationcmds.c @@ -158,7 +158,7 @@ CreatePublication(CreatePublicationStmt *stmt) if (stmt->for_all_tables && !superuser()) ereport(ERROR, (errcode(ERRCODE_INSUFFICIENT_PRIVILEGE), - (errmsg("must be superuser to create FOR ALL TABLES publication")))); + errmsg("must be superuser to create FOR ALL TABLES publication"))); rel = table_open(PublicationRelationId, RowExclusiveLock); diff --git a/src/backend/commands/subscriptioncmds.c b/src/backend/commands/subscriptioncmds.c index 9bfe142adaa..119a9ce76ff 100644 --- a/src/backend/commands/subscriptioncmds.c +++ b/src/backend/commands/subscriptioncmds.c @@ -347,7 +347,7 @@ CreateSubscription(CreateSubscriptionStmt *stmt, bool isTopLevel) if (!superuser()) ereport(ERROR, (errcode(ERRCODE_INSUFFICIENT_PRIVILEGE), - (errmsg("must be superuser to create subscriptions")))); + errmsg("must be superuser to create subscriptions"))); /* * If built with appropriate switch, whine when regression-testing diff --git a/src/backend/commands/user.c b/src/backend/commands/user.c index f3706598423..c47fdfc9e55 100644 --- a/src/backend/commands/user.c +++ b/src/backend/commands/user.c @@ -1523,8 +1523,8 @@ AddRoleMems(const char *rolename, Oid roleid, if (is_member_of_role_nosuper(roleid, memberid)) ereport(ERROR, (errcode(ERRCODE_INVALID_GRANT_OPERATION), - (errmsg("role \"%s\" is a member of role \"%s\"", - rolename, get_rolespec_name(memberRole))))); + errmsg("role \"%s\" is a member of role \"%s\"", + rolename, get_rolespec_name(memberRole)))); /* * Check if entry for this role/member already exists; if so, give diff --git a/src/backend/libpq/auth-scram.c b/src/backend/libpq/auth-scram.c index d2e94d76c5f..5e5119e8ea7 100644 --- a/src/backend/libpq/auth-scram.c +++ b/src/backend/libpq/auth-scram.c @@ -997,8 +997,8 @@ read_client_first_message(scram_state *state, const char *input) if (strcmp(channel_binding_type, "tls-server-end-point") != 0) ereport(ERROR, (errcode(ERRCODE_PROTOCOL_VIOLATION), - (errmsg("unsupported SCRAM channel-binding type \"%s\"", - sanitize_str(channel_binding_type))))); + errmsg("unsupported SCRAM channel-binding type \"%s\"", + sanitize_str(channel_binding_type)))); break; default: ereport(ERROR, @@ -1282,7 +1282,7 @@ read_client_final_message(scram_state *state, const char *input) if (strcmp(channel_binding, b64_message) != 0) ereport(ERROR, (errcode(ERRCODE_INVALID_AUTHORIZATION_SPECIFICATION), - (errmsg("SCRAM channel binding check failed")))); + errmsg("SCRAM channel binding check failed"))); #else /* shouldn't happen, because we checked this earlier already */ elog(ERROR, "channel binding not supported by this build"); @@ -1300,7 +1300,7 @@ read_client_final_message(scram_state *state, const char *input) !(strcmp(channel_binding, "eSws") == 0 && state->cbind_flag == 'y')) ereport(ERROR, (errcode(ERRCODE_PROTOCOL_VIOLATION), - (errmsg("unexpected SCRAM channel-binding attribute in client-final-message")))); + errmsg("unexpected SCRAM channel-binding attribute in client-final-message"))); } state->client_final_nonce = read_attr_value(&p, 'r'); diff --git a/src/backend/libpq/be-secure-openssl.c b/src/backend/libpq/be-secure-openssl.c index 987ab660cbe..18d3fff068b 100644 --- a/src/backend/libpq/be-secure-openssl.c +++ b/src/backend/libpq/be-secure-openssl.c @@ -999,7 +999,7 @@ initialize_dh(SSL_CTX *context, bool isServerStart) { ereport(isServerStart ? FATAL : LOG, (errcode(ERRCODE_CONFIG_FILE_ERROR), - (errmsg("DH: could not load DH parameters")))); + errmsg("DH: could not load DH parameters"))); return false; } @@ -1007,8 +1007,8 @@ initialize_dh(SSL_CTX *context, bool isServerStart) { ereport(isServerStart ? FATAL : LOG, (errcode(ERRCODE_CONFIG_FILE_ERROR), - (errmsg("DH: could not set DH parameters: %s", - SSLerrmessage(ERR_get_error()))))); + errmsg("DH: could not set DH parameters: %s", + SSLerrmessage(ERR_get_error())))); DH_free(dh); return false; } diff --git a/src/backend/postmaster/syslogger.c b/src/backend/postmaster/syslogger.c index cc4c7b5b758..b2b69a72079 100644 --- a/src/backend/postmaster/syslogger.c +++ b/src/backend/postmaster/syslogger.c @@ -569,7 +569,7 @@ SysLogger_Start(void) if (pipe(syslogPipe) < 0) ereport(FATAL, (errcode_for_socket_access(), - (errmsg("could not create pipe for syslog: %m")))); + errmsg("could not create pipe for syslog: %m"))); } #else if (!syslogPipe[0]) @@ -583,7 +583,7 @@ SysLogger_Start(void) if (!CreatePipe(&syslogPipe[0], &syslogPipe[1], &sa, 32768)) ereport(FATAL, (errcode_for_file_access(), - (errmsg("could not create pipe for syslog: %m")))); + errmsg("could not create pipe for syslog: %m"))); } #endif 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) { diff --git a/src/backend/replication/logical/logicalfuncs.c b/src/backend/replication/logical/logicalfuncs.c index 25b89e5616c..8095ae4cb1e 100644 --- a/src/backend/replication/logical/logicalfuncs.c +++ b/src/backend/replication/logical/logicalfuncs.c @@ -103,7 +103,7 @@ check_permissions(void) if (!superuser() && !has_rolreplication(GetUserId())) ereport(ERROR, (errcode(ERRCODE_INSUFFICIENT_PRIVILEGE), - (errmsg("must be superuser or replication role to use replication slots")))); + errmsg("must be superuser or replication role to use replication slots"))); } int diff --git a/src/backend/replication/repl_gram.y b/src/backend/replication/repl_gram.y index 2d96567409f..14fcd532218 100644 --- a/src/backend/replication/repl_gram.y +++ b/src/backend/replication/repl_gram.y @@ -333,7 +333,7 @@ timeline_history: if ($2 <= 0) ereport(ERROR, (errcode(ERRCODE_SYNTAX_ERROR), - (errmsg("invalid timeline %u", $2)))); + errmsg("invalid timeline %u", $2))); cmd = makeNode(TimeLineHistoryCmd); cmd->timeline = $2; @@ -365,7 +365,7 @@ opt_timeline: if ($2 <= 0) ereport(ERROR, (errcode(ERRCODE_SYNTAX_ERROR), - (errmsg("invalid timeline %u", $2)))); + errmsg("invalid timeline %u", $2))); $$ = $2; } | /* EMPTY */ { $$ = 0; } diff --git a/src/backend/replication/slot.c b/src/backend/replication/slot.c index 976f6479a9e..1cec53d7484 100644 --- a/src/backend/replication/slot.c +++ b/src/backend/replication/slot.c @@ -979,7 +979,7 @@ CheckSlotRequirements(void) if (max_replication_slots == 0) ereport(ERROR, (errcode(ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE), - (errmsg("replication slots can only be used if max_replication_slots > 0")))); + errmsg("replication slots can only be used if max_replication_slots > 0"))); if (wal_level < WAL_LEVEL_REPLICA) ereport(ERROR, diff --git a/src/backend/replication/slotfuncs.c b/src/backend/replication/slotfuncs.c index e4c4401b686..2c9d5de6d90 100644 --- a/src/backend/replication/slotfuncs.c +++ b/src/backend/replication/slotfuncs.c @@ -31,7 +31,7 @@ check_permissions(void) if (!superuser() && !has_rolreplication(GetUserId())) ereport(ERROR, (errcode(ERRCODE_INSUFFICIENT_PRIVILEGE), - (errmsg("must be superuser or replication role to use replication slots")))); + errmsg("must be superuser or replication role to use replication slots"))); } /* @@ -669,7 +669,7 @@ copy_replication_slot(FunctionCallInfo fcinfo, bool logical_slot) Assert(!logical_slot); ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), - (errmsg("cannot copy a replication slot that doesn't reserve WAL")))); + errmsg("cannot copy a replication slot that doesn't reserve WAL"))); } /* Overwrite params from optional arguments */ diff --git a/src/backend/replication/walsender.c b/src/backend/replication/walsender.c index 0c65f1660b2..abb533b9d03 100644 --- a/src/backend/replication/walsender.c +++ b/src/backend/replication/walsender.c @@ -563,7 +563,7 @@ StartReplication(StartReplicationCmd *cmd) if (SlotIsLogical(MyReplicationSlot)) ereport(ERROR, (errcode(ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE), - (errmsg("cannot use a logical replication slot for physical replication")))); + errmsg("cannot use a logical replication slot for physical replication"))); } /* @@ -1499,8 +1499,8 @@ exec_replication_command(const char *cmd_string) if (parse_rc != 0) ereport(ERROR, (errcode(ERRCODE_SYNTAX_ERROR), - (errmsg_internal("replication command parser returned %d", - parse_rc)))); + errmsg_internal("replication command parser returned %d", + parse_rc))); cmd_node = replication_parse_result; diff --git a/src/backend/storage/ipc/procarray.c b/src/backend/storage/ipc/procarray.c index c3adb2e6c0a..4a5b26c23dc 100644 --- a/src/backend/storage/ipc/procarray.c +++ b/src/backend/storage/ipc/procarray.c @@ -3046,14 +3046,14 @@ TerminateOtherDBBackends(Oid databaseId) if (superuser_arg(proc->roleId) && !superuser()) ereport(ERROR, (errcode(ERRCODE_INSUFFICIENT_PRIVILEGE), - (errmsg("must be a superuser to terminate superuser process")))); + errmsg("must be a superuser to terminate superuser process"))); /* Users can signal backends they have role membership in. */ if (!has_privs_of_role(GetUserId(), proc->roleId) && !has_privs_of_role(GetUserId(), DEFAULT_ROLE_SIGNAL_BACKENDID)) ereport(ERROR, (errcode(ERRCODE_INSUFFICIENT_PRIVILEGE), - (errmsg("must be a member of the role whose process is being terminated or member of pg_signal_backend")))); + errmsg("must be a member of the role whose process is being terminated or member of pg_signal_backend"))); } } diff --git a/src/backend/storage/ipc/signalfuncs.c b/src/backend/storage/ipc/signalfuncs.c index 7fb6ced14b6..9dd5a272045 100644 --- a/src/backend/storage/ipc/signalfuncs.c +++ b/src/backend/storage/ipc/signalfuncs.c @@ -115,12 +115,12 @@ pg_cancel_backend(PG_FUNCTION_ARGS) if (r == SIGNAL_BACKEND_NOSUPERUSER) ereport(ERROR, (errcode(ERRCODE_INSUFFICIENT_PRIVILEGE), - (errmsg("must be a superuser to cancel superuser query")))); + errmsg("must be a superuser to cancel superuser query"))); if (r == SIGNAL_BACKEND_NOPERMISSION) ereport(ERROR, (errcode(ERRCODE_INSUFFICIENT_PRIVILEGE), - (errmsg("must be a member of the role whose query is being canceled or member of pg_signal_backend")))); + errmsg("must be a member of the role whose query is being canceled or member of pg_signal_backend"))); PG_RETURN_BOOL(r == SIGNAL_BACKEND_SUCCESS); } @@ -139,12 +139,12 @@ pg_terminate_backend(PG_FUNCTION_ARGS) if (r == SIGNAL_BACKEND_NOSUPERUSER) ereport(ERROR, (errcode(ERRCODE_INSUFFICIENT_PRIVILEGE), - (errmsg("must be a superuser to terminate superuser process")))); + errmsg("must be a superuser to terminate superuser process"))); if (r == SIGNAL_BACKEND_NOPERMISSION) ereport(ERROR, (errcode(ERRCODE_INSUFFICIENT_PRIVILEGE), - (errmsg("must be a member of the role whose process is being terminated or member of pg_signal_backend")))); + errmsg("must be a member of the role whose process is being terminated or member of pg_signal_backend"))); PG_RETURN_BOOL(r == SIGNAL_BACKEND_SUCCESS); } @@ -180,10 +180,10 @@ pg_rotate_logfile(PG_FUNCTION_ARGS) if (!superuser()) ereport(ERROR, (errcode(ERRCODE_INSUFFICIENT_PRIVILEGE), - (errmsg("must be superuser to rotate log files with adminpack 1.0"), + errmsg("must be superuser to rotate log files with adminpack 1.0"), /* translator: %s is a SQL function name */ - errhint("Consider using %s, which is part of core, instead.", - "pg_logfile_rotate()")))); + errhint("Consider using %s, which is part of core, instead.", + "pg_logfile_rotate()"))); if (!Logging_collector) { diff --git a/src/backend/utils/adt/genfile.c b/src/backend/utils/adt/genfile.c index 0d75928e7f3..3741b87486d 100644 --- a/src/backend/utils/adt/genfile.c +++ b/src/backend/utils/adt/genfile.c @@ -78,7 +78,7 @@ convert_and_check_filename(text *arg) if (path_contains_parent_reference(filename)) ereport(ERROR, (errcode(ERRCODE_INSUFFICIENT_PRIVILEGE), - (errmsg("reference to parent directory (\"..\") not allowed")))); + errmsg("reference to parent directory (\"..\") not allowed"))); /* * Allow absolute paths if within DataDir or Log_directory, even @@ -89,12 +89,12 @@ convert_and_check_filename(text *arg) !path_is_prefix_of_path(Log_directory, filename))) ereport(ERROR, (errcode(ERRCODE_INSUFFICIENT_PRIVILEGE), - (errmsg("absolute path not allowed")))); + errmsg("absolute path not allowed"))); } else if (!path_is_relative_and_below_cwd(filename)) ereport(ERROR, (errcode(ERRCODE_INSUFFICIENT_PRIVILEGE), - (errmsg("path must be in or below the current directory")))); + errmsg("path must be in or below the current directory"))); return filename; } @@ -218,10 +218,10 @@ pg_read_file(PG_FUNCTION_ARGS) if (!superuser()) ereport(ERROR, (errcode(ERRCODE_INSUFFICIENT_PRIVILEGE), - (errmsg("must be superuser to read files with adminpack 1.0"), + errmsg("must be superuser to read files with adminpack 1.0"), /* translator: %s is a SQL function name */ - errhint("Consider using %s, which is part of core, instead.", - "pg_file_read()")))); + errhint("Consider using %s, which is part of core, instead.", + "pg_file_read()"))); /* handle optional arguments */ if (PG_NARGS() >= 3) diff --git a/src/backend/utils/adt/pg_upgrade_support.c b/src/backend/utils/adt/pg_upgrade_support.c index 8b26e1a93df..0d9e55cdcf4 100644 --- a/src/backend/utils/adt/pg_upgrade_support.c +++ b/src/backend/utils/adt/pg_upgrade_support.c @@ -26,7 +26,7 @@ do { \ if (!IsBinaryUpgrade) \ ereport(ERROR, \ (errcode(ERRCODE_CANT_CHANGE_RUNTIME_PARAM), \ - (errmsg("function can only be called when server is in binary upgrade mode")))); \ + errmsg("function can only be called when server is in binary upgrade mode"))); \ } while (0) Datum diff --git a/src/backend/utils/misc/guc.c b/src/backend/utils/misc/guc.c index cacbe904db7..a16fe8cd5bf 100644 --- a/src/backend/utils/misc/guc.c +++ b/src/backend/utils/misc/guc.c @@ -7993,7 +7993,7 @@ AlterSystemSetConfigFile(AlterSystemStmt *altersysstmt) if (!superuser()) ereport(ERROR, (errcode(ERRCODE_INSUFFICIENT_PRIVILEGE), - (errmsg("must be superuser to execute ALTER SYSTEM command")))); + errmsg("must be superuser to execute ALTER SYSTEM command"))); /* * Extract statement arguments |