Skip to content

Commit b7a08c8

Browse files
committed
Message improvements
1 parent dc9c612 commit b7a08c8

File tree

8 files changed

+10
-10
lines changed

8 files changed

+10
-10
lines changed

src/backend/access/nbtree/nbtpage.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1186,7 +1186,7 @@ _bt_pagedel(Relation rel, Buffer buf)
11861186
(errcode(ERRCODE_INDEX_CORRUPTED),
11871187
errmsg("index \"%s\" contains a half-dead internal page",
11881188
RelationGetRelationName(rel)),
1189-
errhint("This can be caused by an interrupt VACUUM in version 9.3 or older, before upgrade. Please REINDEX it.")));
1189+
errhint("This can be caused by an interrupted VACUUM in version 9.3 or older, before upgrade. Please REINDEX it.")));
11901190
_bt_relbuf(rel, buf);
11911191
return ndeleted;
11921192
}

src/backend/access/transam/xlog.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5193,8 +5193,8 @@ readRecoveryCommandFile(void)
51935193
else
51945194
ereport(ERROR,
51955195
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
5196-
errmsg("invalid recovery_target parameter"),
5197-
errhint("The only allowed value is 'immediate'")));
5196+
errmsg("invalid value for recovery parameter \"recovery_target\""),
5197+
errhint("The only allowed value is \"immediate\".")));
51985198
ereport(DEBUG2,
51995199
(errmsg_internal("recovery_target = '%s'",
52005200
item->value)));
@@ -5257,7 +5257,7 @@ readRecoveryCommandFile(void)
52575257
"recovery_min_apply_delay"),
52585258
hintmsg ? errhint("%s", _(hintmsg)) : 0));
52595259
ereport(DEBUG2,
5260-
(errmsg("recovery_min_apply_delay = '%s'", item->value)));
5260+
(errmsg_internal("recovery_min_apply_delay = '%s'", item->value)));
52615261
}
52625262
else
52635263
ereport(FATAL,

src/backend/commands/dbcommands.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -839,7 +839,7 @@ dropdb(const char *dbname, bool missing_ok)
839839
if (ReplicationSlotsCountDBSlots(db_id, &nslots, &nslots_active))
840840
ereport(ERROR,
841841
(errcode(ERRCODE_OBJECT_IN_USE),
842-
errmsg("database \"%s\" is used by a logical decoding slot",
842+
errmsg("database \"%s\" is used by a logical replication slot",
843843
dbname),
844844
errdetail_plural("There is %d slot, %d of them active.",
845845
"There are %d slots, %d of them active.",

src/backend/commands/matview.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ refresh_by_match_merge(Oid matviewOid, Oid tempOid, Oid relowner,
597597
{
598598
ereport(ERROR,
599599
(errcode(ERRCODE_CARDINALITY_VIOLATION),
600-
errmsg("new data for \"%s\" contains duplicate rows without any NULL columns",
600+
errmsg("new data for \"%s\" contains duplicate rows without any null columns",
601601
RelationGetRelationName(matviewRel)),
602602
errdetail("Row: %s",
603603
SPI_getvalue(SPI_tuptable->vals[0], SPI_tuptable->tupdesc, 1))));

src/backend/commands/tablecmds.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9046,7 +9046,7 @@ ATExecSetRelOptions(Relation rel, List *defList, AlterTableType operation,
90469046
if (view_updatable_error)
90479047
ereport(ERROR,
90489048
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
9049-
errmsg("WITH CHECK OPTION is supported only on auto-updatable views"),
9049+
errmsg("WITH CHECK OPTION is supported only on automatically updatable views"),
90509050
errhint("%s", view_updatable_error)));
90519051
}
90529052
}

src/backend/commands/view.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ DefineView(ViewStmt *stmt, const char *queryString)
471471
if (view_updatable_error)
472472
ereport(ERROR,
473473
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
474-
errmsg("WITH CHECK OPTION is supported only on auto-updatable views"),
474+
errmsg("WITH CHECK OPTION is supported only on automatically updatable views"),
475475
errhint("%s", view_updatable_error)));
476476
}
477477

src/backend/libpq/be-secure-openssl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ be_tls_write(Port *port, void *ptr, size_t len)
614614
if (retries >= 20)
615615
ereport(FATAL,
616616
(errcode(ERRCODE_PROTOCOL_VIOLATION),
617-
errmsg("unable to complete SSL handshake")));
617+
errmsg("could not complete SSL handshake on renegotiation, too many failures")));
618618
}
619619
}
620620
}

src/test/regress/expected/matview.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ REFRESH MATERIALIZED VIEW mv;
411411
ERROR: could not create unique index "mv_a_idx"
412412
DETAIL: Key (a)=(1) is duplicated.
413413
REFRESH MATERIALIZED VIEW CONCURRENTLY mv;
414-
ERROR: new data for "mv" contains duplicate rows without any NULL columns
414+
ERROR: new data for "mv" contains duplicate rows without any null columns
415415
DETAIL: Row: (1,10)
416416
DROP TABLE foo CASCADE;
417417
NOTICE: drop cascades to materialized view mv

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy