Tom Lane writes:
> Besides, it seems to me there are cases where you don't really
> *want* the DEFAULT value to be used to fill the column, but something
> else (or even want NULLs).
Then you could use
ALTER TABLE t1 ADD COLUMN cn text;
ALTER TABLE t1 ALTER COLUMN cn SET DEFAULT 'what you really wanted';
A subtle difference, but it's perfectly consistent. -- And it works
already.
--
Peter Eisentraut peter_e@gmx.net http://funkturm.homeip.net/~peter