From: Peter Eisentraut Date: Thu, 8 Aug 2013 02:48:40 +0000 (-0400) Subject: Message style improvements X-Git-Tag: REL9_3_RC1~29 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=92d003fcbfb73eebf0c1782dbd53c6e2f14d5cc4;p=postgresql Message style improvements --- diff --git a/src/backend/parser/parse_utilcmd.c b/src/backend/parser/parse_utilcmd.c index 175eff2bd0..2ca78bfbde 100644 --- a/src/backend/parser/parse_utilcmd.c +++ b/src/backend/parser/parse_utilcmd.c @@ -679,7 +679,7 @@ transformTableLikeClause(CreateStmtContext *cxt, TableLikeClause *table_like_cla if (cxt->isforeign) ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), - errmsg("LIKE is not supported for foreign tables"))); + errmsg("LIKE is not supported for creating foreign tables"))); relation = relation_openrv(table_like_clause->relation, AccessShareLock); diff --git a/src/backend/port/sysv_shmem.c b/src/backend/port/sysv_shmem.c index 1cfebed51c..20e3c321ab 100644 --- a/src/backend/port/sysv_shmem.c +++ b/src/backend/port/sysv_shmem.c @@ -174,7 +174,7 @@ InternalIpcMemoryCreate(IpcMemoryKey memKey, Size size) "memory configuration.") : 0, (errno == ENOMEM) ? errhint("This error usually means that PostgreSQL's request for a shared " - "memory segment exceeded your kernel's SHMALL parameter. You may need " + "memory segment exceeded your kernel's SHMALL parameter. You might need " "to reconfigure the kernel with larger SHMALL.\n" "The PostgreSQL documentation contains more information about shared " "memory configuration.") : 0, diff --git a/src/backend/postmaster/postmaster.c b/src/backend/postmaster/postmaster.c index dddad59cb6..5547108508 100644 --- a/src/backend/postmaster/postmaster.c +++ b/src/backend/postmaster/postmaster.c @@ -5165,7 +5165,7 @@ RegisterBackgroundWorker(BackgroundWorker *worker) if (!IsUnderPostmaster) ereport(LOG, - (errmsg("registering background worker: %s", worker->bgw_name))); + (errmsg("registering background worker \"%s\"", worker->bgw_name))); if (!process_shared_preload_libraries_in_progress) { @@ -5277,7 +5277,7 @@ BackgroundWorkerInitializeConnection(char *dbname, char *username) /* it had better not gotten out of "init" mode yet */ if (!IsInitProcessingMode()) ereport(ERROR, - (errmsg("invalid processing mode in bgworker"))); + (errmsg("invalid processing mode in background worker"))); SetProcessingMode(NormalProcessing); } diff --git a/src/backend/utils/adt/jsonfuncs.c b/src/backend/utils/adt/jsonfuncs.c index 78a194539d..2cbe83200f 100644 --- a/src/backend/utils/adt/jsonfuncs.c +++ b/src/backend/utils/adt/jsonfuncs.c @@ -1836,7 +1836,7 @@ populate_recordset_array_element_start(void *state, bool isnull) _state->lex->token_type != JSON_TOKEN_OBJECT_START) ereport(ERROR, (errcode(ERRCODE_INVALID_PARAMETER_VALUE), - errmsg("must call populate_recordset on an array of objects"))); + errmsg("must call json_populate_recordset on an array of objects"))); } static void diff --git a/src/backend/utils/misc/guc.c b/src/backend/utils/misc/guc.c index ea16c64619..b53fdc2be3 100644 --- a/src/backend/utils/misc/guc.c +++ b/src/backend/utils/misc/guc.c @@ -1603,7 +1603,7 @@ static struct config_int ConfigureNamesInt[] = { {"wal_receiver_timeout", PGC_SIGHUP, REPLICATION_STANDBY, - gettext_noop("Sets the maximum wait time to receive data from master."), + gettext_noop("Sets the maximum wait time to receive data from the primary."), NULL, GUC_UNIT_MS },