Re: Problem with query - Mailing list pgsql-sql

From Josh Berkus
Subject Re: Problem with query
Date
Msg-id web-2526086@davinci.ethosmedia.com
Whole thread Raw
In response to Problem with query  (Ricardo Javier Aranibar León<ricardo_jal@hotmail.com>)
List pgsql-sql
Ricardo,

For future notice, there is another mailing list, PGSQL-PERFORMANCE,
devoted to questions like yours.

> select * from llamada where fecha='20030127' and tipo=1 and tiempo>0
> and gwdes like '64.7.127.14%' order by hora desc;
> 
> It's very slow, it takes approximately 6 minutes to show me the
> results. I saw that it's happend when I execute this types of queries
> "Select...gwdes like '64.7.127.14%'.." or with field gworg.
> But when i use others fields the time that it take is faster.
> I used PostgreSQL 7.0.3 and I have only problem with this type query.

Are you using 7.0.3 now, or something more current?  I can't really
help you much with 7.0.3.

-Josh


pgsql-sql by date:

Previous
From: Tom Lane
Date:
Subject: Re: Problem with query
Next
From: "Josh Berkus"
Date:
Subject: Re: LONG - Question on dealing w/ numerics