Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Bugs > BUG #4125: Stra...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 3733 of 3899
Post > Topic >>

BUG #4125: Strange ALTER TABLE behavior

by vladimir@[EMAIL PROTECTED] ("Vladimir Kanazir") Apr 23, 2008 at 03:01 PM

The following bug has been logged online:

Bug reference:      4125
Logged by:          Vladimir Kanazir
Email address:      vladimir@[EMAIL PROTECTED]
 version: 8.2.6
Operating system:   Fedora 7
Description:        Strange ALTER TABLE behavior
Details: 

If I execute this query:
alter table history add incoming_id bigint default 0;

the table will be locked until operation finishes (checked by executing
the
select query on the same table via another connection).

But, if I do this:
alter table history add incoming_id bigint;
alter table history alter incoming_id set default 0;
update history set incoming_id=0;
the table will be locked only during alter table execution, which is very
short time.
I think that alter table with default values should work the same way.

-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
 




 3 Posts in Topic:
BUG #4125: Strange ALTER TABLE behavior
vladimir@[EMAIL PROTECTED  2008-04-23 15:01:24 
Re: BUG #4125: Strange ALTER TABLE behavior
tgl@[EMAIL PROTECTED] (T  2008-04-23 11:29:39 
Re: BUG #4125: Strange ALTER TABLE behavior
vladimir@[EMAIL PROTECTED  2008-04-23 17:49:37 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan13V112 Sun Jul 6 1:15:25 CDT 2008.