pgsql: Improve error message and hint for ALTER COLUMN TYPE can't-cast

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Improve error message and hint for ALTER COLUMN TYPE can't-cast
Дата
Msg-id E1Z3RHk-0006AR-Jf@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Improve error message and hint for ALTER COLUMN TYPE can't-cast failure.

We already tried to improve this once, but the "improved" text was rather
off-target if you had provided a USING clause.  Also, it seems helpful
to provide the exact text of a suggested USING clause, so users can just
copy-and-paste it when needed.  Per complaint from Keith Rarick and a
suggestion from Merlin Moncure.

Back-patch to 9.2 where the current wording was adopted.

Branch
------
REL9_4_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/1c150f8aa759aaa9e5761da79653894510d868db

Modified Files
--------------
src/backend/commands/tablecmds.c          |   25 ++++++++++++++++++++-----
src/test/regress/expected/alter_table.out |    7 +++++--
src/test/regress/sql/alter_table.sql      |    1 +
3 files changed, 26 insertions(+), 7 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Improve error message and hint for ALTER COLUMN TYPE can't-cast
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Improve error message and hint for ALTER COLUMN TYPE can't-cast