Re: BUG #1933: ADD COLUMN with DEFAULT resets table oids

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Duncan Crombie" <duncan(at)chirp(dot)com(dot)au>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #1933: ADD COLUMN with DEFAULT resets table oids
Date: 2005-10-03 02:46:39
Message-ID: 12249.1128307599@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

"Duncan Crombie" <duncan(at)chirp(dot)com(dot)au> writes:
> The following command causes all oids in the affected table to be reset to
> new values:
> ALTER TABLE items ADD COLUMN publish bool DEFAULT true;

Yup, that's an oversight. Fix committed, will appear in 8.0.4.
Thanks for the report!

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Jean-Pierre Pelletier 2005-10-03 15:17:56 Unreliable pg_stat_activity, Windows 2000, PostgreSQL 8.1 beta2
Previous Message Tom Lane 2005-10-02 15:18:56 Re: BUG #1930: Cannot create foreign key constraint