In ALTER COLUMN TYPE, strip any implicit coercion operations appearing
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 22 Oct 2004 17:20:05 +0000 (17:20 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 22 Oct 2004 17:20:05 +0000 (17:20 +0000)
commit9309d5f2ba00f3d918bc2f7998440be89fbde85b
treef45b43f401ad6202b528b007b79e561032c485ba
parent4733dcc592c0b9c3b928d248f5b80eafec1fb81d
In ALTER COLUMN TYPE, strip any implicit coercion operations appearing
at the top level of the column's old default expression before adding
an implicit coercion to the new column type.  This seems to satisfy the
principle of least surprise, as per discussion of bug #1290.
doc/src/sgml/ref/alter_table.sgml
src/backend/commands/tablecmds.c
src/backend/optimizer/util/clauses.c
src/include/optimizer/clauses.h