Skip to content

Commit 92d003f

Browse files
committed
Message style improvements
1 parent b5a20ab commit 92d003f

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

src/backend/parser/parse_utilcmd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -679,7 +679,7 @@ transformTableLikeClause(CreateStmtContext *cxt, TableLikeClause *table_like_cla
679679
if (cxt->isforeign)
680680
ereport(ERROR,
681681
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
682-
errmsg("LIKE is not supported for foreign tables")));
682+
errmsg("LIKE is not supported for creating foreign tables")));
683683

684684
relation = relation_openrv(table_like_clause->relation, AccessShareLock);
685685

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/postmaster.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5165,7 +5165,7 @@ RegisterBackgroundWorker(BackgroundWorker *worker)
51655165

51665166
if (!IsUnderPostmaster)
51675167
ereport(LOG,
5168-
(errmsg("registering background worker: %s", worker->bgw_name)));
5168+
(errmsg("registering background worker \"%s\"", worker->bgw_name)));
51695169

51705170
if (!process_shared_preload_libraries_in_progress)
51715171
{
@@ -5277,7 +5277,7 @@ BackgroundWorkerInitializeConnection(char *dbname, char *username)
52775277
/* it had better not gotten out of "init" mode yet */
52785278
if (!IsInitProcessingMode())
52795279
ereport(ERROR,
5280-
(errmsg("invalid processing mode in bgworker")));
5280+
(errmsg("invalid processing mode in background worker")));
52815281
SetProcessingMode(NormalProcessing);
52825282
}
52835283

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
@@ -1603,7 +1603,7 @@ static struct config_int ConfigureNamesInt[] =
16031603

16041604
{
16051605
{"wal_receiver_timeout", PGC_SIGHUP, REPLICATION_STANDBY,
1606-
gettext_noop("Sets the maximum wait time to receive data from master."),
1606+
gettext_noop("Sets the maximum wait time to receive data from the primary."),
16071607
NULL,
16081608
GUC_UNIT_MS
16091609
},

0 commit comments

Comments
 (0)