pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andreas Kostyrka <andreas@mtg.co.at>
To: Christopher Kings-Lynne <chriskl@familyhealth.com.au>
Cc: pgsql-performance@postgresql.org
Subject: Re: Index not used, performance problem
Date: 29 Mar 2003 17:57:58 +0100
Message-ID: <1048957078.7539.17.camel@andi-lap> (raw)
In-Reply-To: <20030329214139.N4697-100000@houston.familyhealth.com.au>
References: <20030329214139.N4697-100000@houston.familyhealth.com.au>

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

Attachments:

  signature.asc (application/pgp-signature, 188B) download

view thread (11+ messages)  latest in thread

Message-ID: <1048957078.7539.17.camel@andi-lap>
Permalink:  ../1048957078.7539.17.camel@andi-lap/
Also on:    postgresql.org/message-id/1048957078.7539.17.camel@andi-lap

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: andreas@mtg.co.at, chriskl@familyhealth.com.au
  Subject: Re: Index not used, performance problem
  In-Reply-To: <1048957078.7539.17.camel@andi-lap>
  References: <20030329214139.N4697-100000@houston.familyhealth.com.au> <1048957078.7539.17.camel@andi-lap>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox