dbTalk Databases Forums  

[BUGS] BUG #1933: ADD COLUMN with DEFAULT resets table oids

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] BUG #1933: ADD COLUMN with DEFAULT resets table oids in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Duncan Crombie
 
Posts: n/a

Default [BUGS] BUG #1933: ADD COLUMN with DEFAULT resets table oids - 10-02-2005 , 08:21 PM







The following bug has been logged online:

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

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match

Reply With Quote
  #2  
Old   
Tom Lane
 
Posts: n/a

Default Re: [BUGS] BUG #1933: ADD COLUMN with DEFAULT resets table oids - 10-02-2005 , 09:56 PM






"Duncan Crombie" <duncan (AT) chirp (DOT) com.au> writes:
Quote:
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

---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.