Search Postgresql Archives

Re: empty string causes planner to avoid index. Makes me sad.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



--- On Fri, 11/27/09, Tom Lane <tgl@xxxxxxxxxxxxx> wrote:

> You didn't show us any evidence of that, either.  Both
> of your test
> cases are using the index.

Ok...third try.  The cost when passing in an empty string is SIGNIFICANTLY higher than when not.  Wouldn't seem that the planner is using the index effectively.

Aggregate  (cost=231884.57..231884.57 rows=1 width=0)

versus 

Aggregate  (cost=34.83..34.83 rows=1 width=0)


By 




-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux