Unix Technical Forum

Re: LIKE, leading percent, bind parameters and indexes

This is a discussion on Re: LIKE, leading percent, bind parameters and indexes within the pgsql Hackers forums, part of the PostgreSQL category; --> > AFAICS the problem is not restricted to LIKE, we can easily find a lot of > similar problems ...


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

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-12-2008, 02:34 AM
Zeugswetter Andreas DCP SD
 
Posts: n/a
Default Re: LIKE, leading percent, bind parameters and indexes

> AFAICS the problem is not restricted to LIKE, we can easily find a lot
of
> similar problems caused by the actual parameters. For example, SeqScan

vs.
> IndexScan vs. BitmapIndexScan for a range query. So an improvement is
> definitely needed.


> Another way is to generate a plan on the fly. What we do is to let

some
> REPLAN nodes sit on top of some critical plan node: at the execution,

we
> will compare the actual numbers we get and the estimated number we

have

Since we are deciding this on histogram data, it seems we could "store"
the ranges (and exception values) where this plan is not good, and
replan in
case the new value does not fit.

This would also imply, that we postpone (part of the) planning until we
get the
first values, when the node cost largly depends on the supplied value.

Andreas

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

http://archives.postgresql.org

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 08:47 AM.


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