aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2017-09-11 11:20:47 -0400
committerPeter Eisentraut <peter_e@gmx.net>2017-09-11 11:21:27 -0400
commit821fb8cdbf700a8aadbe12d5b46ca4e61be5a8a8 (patch)
tree4f168da823a903d3d246f0141036618cc21f725c /src/backend/commands
parent3c435952176ae5d294b37e5963cd72ddb66edead (diff)
downloadpostgresql-821fb8cdbf700a8aadbe12d5b46ca4e61be5a8a8.tar.gz
postgresql-821fb8cdbf700a8aadbe12d5b46ca4e61be5a8a8.zip
Message style fixes
Diffstat (limited to 'src/backend/commands')
-rw-r--r--src/backend/commands/publicationcmds.c2
-rw-r--r--src/backend/commands/statscmds.c10
-rw-r--r--src/backend/commands/tablecmds.c2
-rw-r--r--src/backend/commands/trigger.c2
4 files changed, 8 insertions, 8 deletions
diff --git a/src/backend/commands/publicationcmds.c b/src/backend/commands/publicationcmds.c
index 610cb499d25..f298d3d381c 100644
--- a/src/backend/commands/publicationcmds.c
+++ b/src/backend/commands/publicationcmds.c
@@ -103,7 +103,7 @@ parse_publication_options(List *options,
if (!SplitIdentifierString(publish, ',', &publish_list))
ereport(ERROR,
(errcode(ERRCODE_SYNTAX_ERROR),
- errmsg("invalid publish list")));
+ errmsg("invalid list syntax for \"publish\" option")));
/* Process the option list. */
foreach(lc, publish_list)
diff --git a/src/backend/commands/statscmds.c b/src/backend/commands/statscmds.c
index 476505512b8..c70a28de4bc 100644
--- a/src/backend/commands/statscmds.c
+++ b/src/backend/commands/statscmds.c
@@ -180,7 +180,7 @@ CreateStatistics(CreateStatsStmt *stmt)
if (!HeapTupleIsValid(atttuple))
ereport(ERROR,
(errcode(ERRCODE_UNDEFINED_COLUMN),
- errmsg("column \"%s\" referenced in statistics does not exist",
+ errmsg("column \"%s\" does not exist",
attname)));
attForm = (Form_pg_attribute) GETSTRUCT(atttuple);
@@ -195,8 +195,8 @@ CreateStatistics(CreateStatsStmt *stmt)
if (type->lt_opr == InvalidOid)
ereport(ERROR,
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
- errmsg("column \"%s\" cannot be used in statistics because its type has no default btree operator class",
- attname)));
+ errmsg("column \"%s\" cannot be used in statistics because its type %s has no default btree operator class",
+ attname, format_type_be(attForm->atttypid))));
/* Make sure no more than STATS_MAX_DIMENSIONS columns are used */
if (numcols >= STATS_MAX_DIMENSIONS)
@@ -242,7 +242,7 @@ CreateStatistics(CreateStatsStmt *stmt)
stxkeys = buildint2vector(attnums, numcols);
/*
- * Parse the statistics types.
+ * Parse the statistics kinds.
*/
build_ndistinct = false;
build_dependencies = false;
@@ -263,7 +263,7 @@ CreateStatistics(CreateStatsStmt *stmt)
else
ereport(ERROR,
(errcode(ERRCODE_SYNTAX_ERROR),
- errmsg("unrecognized statistic type \"%s\"",
+ errmsg("unrecognized statistics kind \"%s\"",
type)));
}
/* If no statistic type was specified, build them all. */
diff --git a/src/backend/commands/tablecmds.c b/src/backend/commands/tablecmds.c
index d2167eda239..96354bdee55 100644
--- a/src/backend/commands/tablecmds.c
+++ b/src/backend/commands/tablecmds.c
@@ -13859,7 +13859,7 @@ ATExecAttachPartition(List **wqueue, Relation rel, PartitionCmd *cmd)
errmsg("table \"%s\" contains column \"%s\" not found in parent \"%s\"",
RelationGetRelationName(attachrel), attributeName,
RelationGetRelationName(rel)),
- errdetail("New partition should contain only the columns present in parent.")));
+ errdetail("The new partition may contain only the columns present in parent.")));
}
/*
diff --git a/src/backend/commands/trigger.c b/src/backend/commands/trigger.c
index bbfbc06db90..269c9e17dd1 100644
--- a/src/backend/commands/trigger.c
+++ b/src/backend/commands/trigger.c
@@ -416,7 +416,7 @@ CreateTrigger(CreateTrigStmt *stmt, const char *queryString,
(TRIGGER_FOR_DELETE(tgtype) ? 1 : 0)) != 1)
ereport(ERROR,
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
- errmsg("Transition tables cannot be specified for triggers with more than one event")));
+ errmsg("transition tables cannot be specified for triggers with more than one event")));
if (tt->isNew)
{