Skip to content

Commit 7ce2a45

Browse files
committed
Message improvements
1 parent 308ab77 commit 7ce2a45

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
@@ -5204,8 +5204,8 @@ readRecoveryCommandFile(void)
52045204
else
52055205
ereport(ERROR,
52065206
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
5207-
errmsg("invalid recovery_target parameter"),
5208-
errhint("The only allowed value is 'immediate'")));
5207+
errmsg("invalid value for recovery parameter \"recovery_target\""),
5208+
errhint("The only allowed value is \"immediate\".")));
52095209
ereport(DEBUG2,
52105210
(errmsg_internal("recovery_target = '%s'",
52115211
item->value)));
@@ -5268,7 +5268,7 @@ readRecoveryCommandFile(void)
52685268
"recovery_min_apply_delay"),
52695269
hintmsg ? errhint("%s", _(hintmsg)) : 0));
52705270
ereport(DEBUG2,
5271-
(errmsg("recovery_min_apply_delay = '%s'", item->value)));
5271+
(errmsg_internal("recovery_min_apply_delay = '%s'", item->value)));
52725272
}
52735273
else
52745274
ereport(FATAL,

src/backend/commands/dbcommands.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -817,7 +817,7 @@ dropdb(const char *dbname, bool missing_ok)
817817
if (ReplicationSlotsCountDBSlots(db_id, &nslots, &nslots_active))
818818
ereport(ERROR,
819819
(errcode(ERRCODE_OBJECT_IN_USE),
820-
errmsg("database \"%s\" is used by a logical decoding slot",
820+
errmsg("database \"%s\" is used by a logical replication slot",
821821
dbname),
822822
errdetail_plural("There is %d slot, %d of them active.",
823823
"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
@@ -588,7 +588,7 @@ refresh_by_match_merge(Oid matviewOid, Oid tempOid, Oid relowner,
588588
{
589589
ereport(ERROR,
590590
(errcode(ERRCODE_CARDINALITY_VIOLATION),
591-
errmsg("new data for \"%s\" contains duplicate rows without any NULL columns",
591+
errmsg("new data for \"%s\" contains duplicate rows without any null columns",
592592
RelationGetRelationName(matviewRel)),
593593
errdetail("Row: %s",
594594
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
@@ -8945,7 +8945,7 @@ ATExecSetRelOptions(Relation rel, List *defList, AlterTableType operation,
89458945
if (view_updatable_error)
89468946
ereport(ERROR,
89478947
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
8948-
errmsg("WITH CHECK OPTION is supported only on auto-updatable views"),
8948+
errmsg("WITH CHECK OPTION is supported only on automatically updatable views"),
89498949
errhint("%s", view_updatable_error)));
89508950
}
89518951
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ secure_write(Port *port, void *ptr, size_t len)
381381
if (retries >= 20)
382382
ereport(FATAL,
383383
(errcode(ERRCODE_PROTOCOL_VIOLATION),
384-
errmsg("unable to complete SSL handshake")));
384+
errmsg("could not complete SSL handshake on renegotiation, too many failures")));
385385
}
386386
}
387387
}

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