Re: alter table questions - Mailing list pgsql-general

From Peter Eisentraut
Subject Re: alter table questions
Date
Msg-id Pine.LNX.4.30.0104231741050.758-100000@peter.localdomain
Whole thread Raw
In response to alter table questions  ("mike" <matrix@quadrent.net>)
List pgsql-general
mike writes:

> in the current postgres docs alter table is as follows to add a column,
>
> ALTER TABLE distributors ADD COLUMN address VARCHAR(30);
>
> why is it when I add a column with a defualt value the default value is ignored?
> ALTER TABLE ind_personal ADD COLUMN reg_security CHAR(3) NOT NULL DEFAULT '0';

Because no one has ever come around to implementing it.

--
Peter Eisentraut   peter_e@gmx.net   http://funkturm.homeip.net/~peter


pgsql-general by date:

Previous
From: Peter T Mount
Date:
Subject: Re: 7.1 RPM has old JDBC driver - SQL statement too long
Next
From: "Gregory Wood"
Date:
Subject: Re: Replication and on-line recovery