Re: Index not used, performance problem - Mailing list pgsql-performance

From Andreas Kostyrka
Subject Re: Index not used, performance problem
Date
Msg-id 1048957078.7539.17.camel@andi-lap
Whole thread Raw
In response to Re: Index not used, performance problem  (Christopher Kings-Lynne <chriskl@familyhealth.com.au>)
Responses Re: Index not used, performance problem  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-performance
On Sat, 2003-03-29 at 14:47, Christopher Kings-Lynne wrote:
> As for the LIKE searches, the only ones that PostgreSQL can index are of
> the form 'FOO%', which is what you are doing.  However, I believe that
> PostgreSQL cannot do this if your database encoding is anything other than
> 'C'.  So, if you are using an Austrian encoding, it might not be able to
> use the index.
Well, I use LATIN1. How do I store 8-bit chars else? And if so,
PostgreSQL seems quite strongly broken, because a relational database
relies by design heavily on indexes.

> Also, what is the point of searching for LIKE '%'? Why not just leave that
> out?
Well, it's about generating the SQL query.
Actually it's just a border case for searching for a given prefix.

Andreas

Attachment

pgsql-performance by date:

Previous
From: "John K. Herreshoff"
Date:
Subject: Re: Index not used, performance problem
Next
From: Jord Tanner
Date:
Subject: Re: Index not used, performance problem