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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: adwolf1(at)yahoo(dot)com (ad wolf)
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Bug in 7.2.1? -- ERROR: Adding columns with defaults is not implemented.
Date: 2002-07-08 16:20:00
Message-ID: 17960.1026145200@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

adwolf1(at)yahoo(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Manfred Koizar 2002-07-08 16:20:23 Re: PostgreSQL doesn't use indexes even is enable_seqscan = off
Previous Message terry 2002-07-08 16:17:30 Re: I am being interviewed by OReilly