pgsql: Improve error message for ALTER COLUMN TYPE coercion failure. - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Improve error message for ALTER COLUMN TYPE coercion failure.
Date
Msg-id E1SUcPT-00087V-JX@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Improve error message for ALTER COLUMN TYPE coercion failure.

Per recent discussion, the error message for this was actually a trifle
inaccurate, since it said "cannot be cast" which might be incorrect.
Adjust that wording, and add a HINT suggesting that a USING clause might
be needed.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/488c6dd1708a2c4a9e9f307001f28c05c48651bd

Modified Files
--------------
src/backend/commands/tablecmds.c          |    7 ++++---
src/test/regress/expected/alter_table.out |    8 +++++---
2 files changed, 9 insertions(+), 6 deletions(-)


pgsql-committers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: pgsql: Fix bug in freespace calculation in heap_multi_insert().
Next
From: Tom Lane
Date:
Subject: Re: pgsql: Fix bug in to_tsquery().