Unix Technical Forum

Optimizer Bug of Debug Version

This is a discussion on Optimizer Bug of Debug Version within the pgsql Bugs forums, part of the PostgreSQL category; --> In 8.1, if we execute the following queries on an debug version: create table t(a int,b int); create index ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Bugs

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 10:14 AM
Jackie Leng
 
Posts: n/a
Default Optimizer Bug of Debug Version


In 8.1, if we execute the following queries on an debug version:

create table t(a int,b int);
create index ttt on t(a,b);
explain select * from t t1,t t2 where (t1.a=1 and t2.b in (1,2)) or (t1.a=2
and t2.b in (3,4));

The server will halt in function "generate_bitmap_or_paths".Seems that
"create_or_index_quals" produces OR-of-OR quals, which is not allowed in
this phase.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-10-2008, 10:14 AM
Tom Lane
 
Posts: n/a
Default Re: Optimizer Bug of Debug Version

"Jackie Leng" <lengjianquan@163.com> writes:
> In 8.1, if we execute the following queries on an debug version:


> create table t(a int,b int);
> create index ttt on t(a,b);
> explain select * from t t1,t t2 where (t1.a=1 and t2.b in (1,2)) or (t1.a=2
> and t2.b in (3,4));


> The server will halt in function "generate_bitmap_or_paths".Seems that
> "create_or_index_quals" produces OR-of-OR quals, which is not allowed in
> this phase.


Please update to 8.1.4.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

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 01:00 AM.


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