pgsql: Cause ALTER TABLE to perform ALTER COLUMN DROP DEFAULT operations

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Cause ALTER TABLE to perform ALTER COLUMN DROP DEFAULT operations
Date: 2006-08-03 20:57:06
Message-ID: 20060803205706.DC9C29FB0D1@postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
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.

Modified Files:
--------------
pgsql/doc/src/sgml/ref:
alter_table.sgml (r1.87 -> r1.88)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/doc/src/sgml/ref/alter_table.sgml.diff?r1=1.87&r2=1.88)
pgsql/src/backend/commands:
tablecmds.c (r1.198 -> r1.199)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/commands/tablecmds.c.diff?r1=1.198&r2=1.199)

Browse pgsql-committers by date

  From Date Subject
Next Message User Gsmet 2006-08-03 21:21:01 pgfouine - pgfouine: * [vacuum] improved the layout * [vacuum] fixed the
Previous Message Tom Lane 2006-08-03 17:04:00 pgsql: Remove use of a regex character class in resultmap (for freebsd