1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-16 06:01:02 +03:00

Message style tweaks

This commit is contained in:
Peter Eisentraut
2011-07-05 00:01:35 +03:00
parent d479a0f92f
commit 27af66162b
9 changed files with 18 additions and 17 deletions

View File

@ -6924,7 +6924,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)