From 06f04b6dc41354d1eada7b68bab339c908fc97eb Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Tue, 5 Jul 2011 00:01:35 +0300 Subject: Message style tweaks --- src/backend/commands/tablecmds.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/backend/commands/tablecmds.c') diff --git a/src/backend/commands/tablecmds.c b/src/backend/commands/tablecmds.c index 029d33a223d..142419f2cca 100644 --- a/src/backend/commands/tablecmds.c +++ b/src/backend/commands/tablecmds.c @@ -6751,7 +6751,8 @@ ATPrepAlterColumnType(List **wqueue, else if (transform) ereport(ERROR, (errcode(ERRCODE_WRONG_OBJECT_TYPE), - errmsg("ALTER TYPE USING is only supported on plain tables"))); + errmsg("\"%s\" is not a table", + RelationGetRelationName(rel)))); if (tab->relkind == RELKIND_COMPOSITE_TYPE || tab->relkind == RELKIND_FOREIGN_TABLE) -- cgit v1.2.3