mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
Message improvements
This commit is contained in:
@ -839,7 +839,7 @@ dropdb(const char *dbname, bool missing_ok)
|
||||
if (ReplicationSlotsCountDBSlots(db_id, &nslots, &nslots_active))
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_OBJECT_IN_USE),
|
||||
errmsg("database \"%s\" is used by a logical decoding slot",
|
||||
errmsg("database \"%s\" is used by a logical replication slot",
|
||||
dbname),
|
||||
errdetail_plural("There is %d slot, %d of them active.",
|
||||
"There are %d slots, %d of them active.",
|
||||
|
@ -597,7 +597,7 @@ refresh_by_match_merge(Oid matviewOid, Oid tempOid, Oid relowner,
|
||||
{
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_CARDINALITY_VIOLATION),
|
||||
errmsg("new data for \"%s\" contains duplicate rows without any NULL columns",
|
||||
errmsg("new data for \"%s\" contains duplicate rows without any null columns",
|
||||
RelationGetRelationName(matviewRel)),
|
||||
errdetail("Row: %s",
|
||||
SPI_getvalue(SPI_tuptable->vals[0], SPI_tuptable->tupdesc, 1))));
|
||||
|
@ -9046,7 +9046,7 @@ ATExecSetRelOptions(Relation rel, List *defList, AlterTableType operation,
|
||||
if (view_updatable_error)
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
|
||||
errmsg("WITH CHECK OPTION is supported only on auto-updatable views"),
|
||||
errmsg("WITH CHECK OPTION is supported only on automatically updatable views"),
|
||||
errhint("%s", view_updatable_error)));
|
||||
}
|
||||
}
|
||||
|
@ -471,7 +471,7 @@ DefineView(ViewStmt *stmt, const char *queryString)
|
||||
if (view_updatable_error)
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
|
||||
errmsg("WITH CHECK OPTION is supported only on auto-updatable views"),
|
||||
errmsg("WITH CHECK OPTION is supported only on automatically updatable views"),
|
||||
errhint("%s", view_updatable_error)));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user