pgsql: Improve error message for ALTER COLUMN TYPE coercion failure.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Improve error message for ALTER COLUMN TYPE coercion failure.
Date: 2012-05-16 11:28:51
Message-ID: E1SUcPT-00087V-JX@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2012-05-16 11:31:55 Re: pgsql: Fix bug in to_tsquery().
Previous Message Heikki Linnakangas 2012-05-16 11:14:19 pgsql: Fix bug in freespace calculation in heap_multi_insert().