Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 9d775d8

Browse files
committed
Message style improvements
1 parent 91c3613 commit 9d775d8

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

src/backend/parser/parse_utilcmd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,7 @@ transformTableLikeClause(CreateStmtContext *cxt, TableLikeClause *table_like_cla
672672
if (cxt->isforeign)
673673
ereport(ERROR,
674674
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
675-
errmsg("LIKE is not supported for foreign tables")));
675+
errmsg("LIKE is not supported for creating foreign tables")));
676676

677677
relation = relation_openrv(table_like_clause->relation, AccessShareLock);
678678

src/backend/port/sysv_shmem.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ InternalIpcMemoryCreate(IpcMemoryKey memKey, Size size)
174174
"memory configuration.") : 0,
175175
(errno == ENOMEM) ?
176176
errhint("This error usually means that PostgreSQL's request for a shared "
177-
"memory segment exceeded your kernel's SHMALL parameter. You may need "
177+
"memory segment exceeded your kernel's SHMALL parameter. You might need "
178178
"to reconfigure the kernel with larger SHMALL.\n"
179179
"The PostgreSQL documentation contains more information about shared "
180180
"memory configuration.") : 0,

src/backend/postmaster/bgworker.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ BackgroundWorkerStateChange(void)
255255

256256
/* Log it! */
257257
ereport(LOG,
258-
(errmsg("registering background worker: %s",
258+
(errmsg("registering background worker \"%s\"",
259259
rw->rw_worker.bgw_name)));
260260

261261
slist_push_head(&BackgroundWorkerList, &rw->rw_lnode);
@@ -284,7 +284,7 @@ ForgetBackgroundWorker(slist_mutable_iter *cur)
284284
slot->in_use = false;
285285

286286
ereport(LOG,
287-
(errmsg("unregistering background worker: %s",
287+
(errmsg("unregistering background worker \"%s\"",
288288
rw->rw_worker.bgw_name)));
289289

290290
slist_delete_current(cur);
@@ -368,7 +368,7 @@ RegisterBackgroundWorker(BackgroundWorker *worker)
368368

369369
if (!IsUnderPostmaster)
370370
ereport(LOG,
371-
(errmsg("registering background worker: %s", worker->bgw_name)));
371+
(errmsg("registering background worker \"%s\"", worker->bgw_name)));
372372

373373
if (!process_shared_preload_libraries_in_progress)
374374
{

src/backend/postmaster/postmaster.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5224,7 +5224,7 @@ BackgroundWorkerInitializeConnection(char *dbname, char *username)
52245224
/* it had better not gotten out of "init" mode yet */
52255225
if (!IsInitProcessingMode())
52265226
ereport(ERROR,
5227-
(errmsg("invalid processing mode in bgworker")));
5227+
(errmsg("invalid processing mode in background worker")));
52285228
SetProcessingMode(NormalProcessing);
52295229
}
52305230

src/backend/utils/adt/jsonfuncs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1836,7 +1836,7 @@ populate_recordset_array_element_start(void *state, bool isnull)
18361836
_state->lex->token_type != JSON_TOKEN_OBJECT_START)
18371837
ereport(ERROR,
18381838
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
1839-
errmsg("must call populate_recordset on an array of objects")));
1839+
errmsg("must call json_populate_recordset on an array of objects")));
18401840
}
18411841

18421842
static void

src/backend/utils/misc/guc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1607,7 +1607,7 @@ static struct config_int ConfigureNamesInt[] =
16071607

16081608
{
16091609
{"wal_receiver_timeout", PGC_SIGHUP, REPLICATION_STANDBY,
1610-
gettext_noop("Sets the maximum wait time to receive data from master."),
1610+
gettext_noop("Sets the maximum wait time to receive data from the primary."),
16111611
NULL,
16121612
GUC_UNIT_MS
16131613
},

0 commit comments

Comments
 (0)