OSDN Git Service

Cause ALTER TABLE to perform ALTER COLUMN DROP DEFAULT operations during
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 3 Aug 2006 20:57:06 +0000 (20:57 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 3 Aug 2006 20:57:06 +0000 (20:57 +0000)
commit7946f77220bb960e7ba5ed2a9dfb84ac3f926b2f
tree06e2acfd4ef190bffdfedf4d69669595c9563971
parent89c07b18a6e6bda2508943a3a23569268892b430
Cause ALTER TABLE to perform ALTER COLUMN DROP DEFAULT operations during
the DROP pass rather than the ADD_CONSTR pass.  On examining the code I
think this was just an oversight rather than intentional, and it seems
to satisfy the principle of least surprise better than the alternative
solution that was discussed.  Add an example to the ref page showing how
to do ALTER TYPE and update the default in one command.  Per gripe from
Markus Bertheau that that wasn't possible.
doc/src/sgml/ref/alter_table.sgml
src/backend/commands/tablecmds.c