BUG #1933: ADD COLUMN with DEFAULT resets table oids - Mailing list pgsql-bugs

From Duncan Crombie
Subject BUG #1933: ADD COLUMN with DEFAULT resets table oids
Date
Msg-id 20051002134423.648C7F0FAE@svr2.postgresql.org
Whole thread Raw
Responses Re: BUG #1933: ADD COLUMN with DEFAULT resets table oids
List pgsql-bugs
The following bug has been logged online:

Bug reference:      1933
Logged by:          Duncan Crombie
Email address:      duncan@chirp.com.au
PostgreSQL version: 8.0.1
Operating system:   Darwin (OSX)
Description:        ADD COLUMN with DEFAULT resets table oids
Details:

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;

The following causes no problems:

ALTER TABLE items ADD COLUMN publish bool;
ALTER TABLE items ALTER publish SET DEFAULT true;

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #1930: Cannot create foreign key constraint
Next
From: Balaji NV
Date:
Subject: Error While Connectint to Database