BUG #1933: ADD COLUMN with DEFAULT resets table oids

From: "Duncan Crombie" <duncan(at)chirp(dot)com(dot)au>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #1933: ADD COLUMN with DEFAULT resets table oids
Date: 2005-10-02 13:44:23
Message-ID: 20051002134423.648C7F0FAE@svr2.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


The following bug has been logged online:

Bug reference: 1933
Logged by: Duncan Crombie
Email address: duncan(at)chirp(dot)com(dot)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;

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message AL ELK 2005-10-02 14:13:56 Re: [BUGS] BUG #1931: ILIKE and LIKE fails on Turkish locale
Previous Message William ZHANG 2005-10-02 13:43:11 Re: BUG #1815: ECPGdebug causes crash on Windows XP