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)
commite7239828e81275609f28e1ed5bf6f15bbe2caebc
treebc8e8473156fd6b43e9858ab9a0d6dde73af6fc9
parentaafcc6a9040c1d98364264098042e629e7f81bcb
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