Unix Technical Forum

In-place alter table and boolean column

This is a discussion on In-place alter table and boolean column within the Informix forums, part of the Database Server Software category; --> Hello gentlemen, In running "ALTER TABLE bigtable ADD (yncolumn BOOLEAN)" on IDS 9.40 I found to my surprise that ...


Go Back   Unix Technical Forum > Database Server Software > Informix

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-20-2008, 05:05 PM
Danilo Fiorenzano
 
Posts: n/a
Default In-place alter table and boolean column

Hello gentlemen,

In running "ALTER TABLE bigtable ADD (yncolumn BOOLEAN)" on IDS 9.40 I
found to my surprise that the server chose to execute the slow
algorithm instead of the in-place alter I expected. Is this normal?
The Performance Guide does not say anything special about boolean
columns and "alter table", so I thought that the new column would be
added in-place as it is of a built-in type, after all.

thanks for your insight

--
Danilo.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-20-2008, 05:05 PM
Carsten Haese
 
Posts: n/a
Default Re: In-place alter table and boolean column

On Sat, 2007-07-21 at 21:57 +0000, Danilo Fiorenzano wrote:
> Hello gentlemen,
>
> In running "ALTER TABLE bigtable ADD (yncolumn BOOLEAN)" on IDS 9.40 I
> found to my surprise that the server chose to execute the slow
> algorithm instead of the in-place alter I expected. Is this normal?
> The Performance Guide does not say anything special about boolean
> columns and "alter table", so I thought that the new column would be
> added in-place as it is of a built-in type, after all.


boolean is a user-defined type. You didn't define it, the system did,
but it's still in sysxtdtypes. Adding a UDT column uses slow alter.

HTH,

--
Carsten Haese
http://informixdb.sourceforge.net


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:07 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com