Re: Alter table add column ignores default - Mailing list pgsql-bugs

From Tom Lane
Subject Re: Alter table add column ignores default
Date
Msg-id 4188.989588826@sss.pgh.pa.us
Whole thread Raw
In response to Re: Alter table add column ignores default  (Vince Vielhaber <vev@michvhf.com>)
List pgsql-bugs
Vince Vielhaber <vev@michvhf.com> writes:
> If this:
> alter table foobar add column address varchar(50) default 'none';
> is the incorrect syntax, why does it not fail or at least give a
> warning?

Because it's incompletely implemented: the parser takes the full syntax
but the ALTER TABLE routine doesn't do everything it should.

            regards, tom lane

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: exists <==> not exists ???
Next
From: Tom Lane
Date:
Subject: Re: SELECT updatability clause defective.