Re: Bug in 7.2.1? -- ERROR: Adding columns with defaults is not implemented. - Mailing list pgsql-general

From Tom Lane
Subject Re: Bug in 7.2.1? -- ERROR: Adding columns with defaults is not implemented.
Date
Msg-id 17960.1026145200@sss.pgh.pa.us
Whole thread Raw
In response to Bug in 7.2.1? -- ERROR: Adding columns with defaults is not implemented.  (adwolf1@yahoo.com (ad wolf))
List pgsql-general
adwolf1@yahoo.com (ad wolf) writes:
> Using pg 7.1.2,  I can enter the following statement successfully:
> # alter table manufacturer add column dummy integer not null default
> 1;

You might have been able to enter it, but it didn't do what the spec
says it should do.

The behavior PG can actually implement is equivalent to the spec
behavior for ADD COLUMN followed by a separate SET DEFAULT command,
and that's how you have to do it in 7.2.

            regards, tom lane



pgsql-general by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Redhat/glibc and postgre time "bug"
Next
From: terry@greatgulfhomes.com
Date:
Subject: Re: Bug in 7.2.1? -- ERROR: Adding columns with defaults is not implemented.