Re: index with LIKE - Mailing list pgsql-general

From Martijn van Oosterhout
Subject Re: index with LIKE
Date
Msg-id 20040609201011.GA24652@svana.org
Whole thread Raw
In response to index with LIKE  ("Henrik Steffen" <steffen@topconcepts.de>)
Responses Re: index with LIKE
Re: index with LIKE
List pgsql-general
On Wed, Jun 09, 2004 at 09:00:31AM +0200, Henrik Steffen wrote:
>
> hello all,
>
> on my master-db-server i'm running postgres 7.4.1,
> and I have got two slave-servers running postgres 7.4.2

<snip>

> Is there such a difference in 7.4.1 to 7.4.2 ?
>
> A retardation of 722 ms is not acceptable for me, and I don't see why
> the indexes are not used.
> Do you have an idea? I have run VACUUM ANALYZE several times, and
> REINDEX TABLE foo and even
> DROPped and reCREATEd the index. Didn't help.

The classic issue is what encoding are the databases. Anything other
than C and like won't use indexes.

Also, you did a vacuum analyze on both, right?


Hope this helps,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.

Attachment

pgsql-general by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: postgres on SuSE 9.1
Next
From: jseymour@linxnet.com (Jim Seymour)
Date:
Subject: Re: Multiple databases on seperate drives/file systems?