Re: alter table questions

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: mike <matrix(at)quadrent(dot)net>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: alter table questions
Date: 2001-04-23 15:41:44
Message-ID: Pine.LNX.4.30.0104231741050.758-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)gmx(dot)net http://funkturm.homeip.net/~peter

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Gregory Wood 2001-04-23 15:42:39 Re: Replication and on-line recovery
Previous Message Toy 2001-04-23 15:14:48 general storage question with SQL