Message style improvements

This commit is contained in:
Peter Eisentraut 2013-08-07 22:48:40 -04:00
parent 91c3613d37
commit 9d775d8894
6 changed files with 8 additions and 8 deletions

View File

@ -672,7 +672,7 @@ transformTableLikeClause(CreateStmtContext *cxt, TableLikeClause *table_like_cla
if (cxt->isforeign) if (cxt->isforeign)
ereport(ERROR, ereport(ERROR,
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED), (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); relation = relation_openrv(table_like_clause->relation, AccessShareLock);

View File

@ -174,7 +174,7 @@ InternalIpcMemoryCreate(IpcMemoryKey memKey, Size size)
"memory configuration.") : 0, "memory configuration.") : 0,
(errno == ENOMEM) ? (errno == ENOMEM) ?
errhint("This error usually means that PostgreSQL's request for a shared " 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" "to reconfigure the kernel with larger SHMALL.\n"
"The PostgreSQL documentation contains more information about shared " "The PostgreSQL documentation contains more information about shared "
"memory configuration.") : 0, "memory configuration.") : 0,

View File

@ -255,7 +255,7 @@ BackgroundWorkerStateChange(void)
/* Log it! */ /* Log it! */
ereport(LOG, ereport(LOG,
(errmsg("registering background worker: %s", (errmsg("registering background worker \"%s\"",
rw->rw_worker.bgw_name))); rw->rw_worker.bgw_name)));
slist_push_head(&BackgroundWorkerList, &rw->rw_lnode); slist_push_head(&BackgroundWorkerList, &rw->rw_lnode);
@ -284,7 +284,7 @@ ForgetBackgroundWorker(slist_mutable_iter *cur)
slot->in_use = false; slot->in_use = false;
ereport(LOG, ereport(LOG,
(errmsg("unregistering background worker: %s", (errmsg("unregistering background worker \"%s\"",
rw->rw_worker.bgw_name))); rw->rw_worker.bgw_name)));
slist_delete_current(cur); slist_delete_current(cur);
@ -368,7 +368,7 @@ RegisterBackgroundWorker(BackgroundWorker *worker)
if (!IsUnderPostmaster) if (!IsUnderPostmaster)
ereport(LOG, 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) if (!process_shared_preload_libraries_in_progress)
{ {

View File

@ -5224,7 +5224,7 @@ BackgroundWorkerInitializeConnection(char *dbname, char *username)
/* it had better not gotten out of "init" mode yet */ /* it had better not gotten out of "init" mode yet */
if (!IsInitProcessingMode()) if (!IsInitProcessingMode())
ereport(ERROR, ereport(ERROR,
(errmsg("invalid processing mode in bgworker"))); (errmsg("invalid processing mode in background worker")));
SetProcessingMode(NormalProcessing); SetProcessingMode(NormalProcessing);
} }

View File

@ -1836,7 +1836,7 @@ populate_recordset_array_element_start(void *state, bool isnull)
_state->lex->token_type != JSON_TOKEN_OBJECT_START) _state->lex->token_type != JSON_TOKEN_OBJECT_START)
ereport(ERROR, ereport(ERROR,
(errcode(ERRCODE_INVALID_PARAMETER_VALUE), (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 static void

View File

@ -1607,7 +1607,7 @@ static struct config_int ConfigureNamesInt[] =
{ {
{"wal_receiver_timeout", PGC_SIGHUP, REPLICATION_STANDBY, {"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, NULL,
GUC_UNIT_MS GUC_UNIT_MS
}, },