pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephan Szabo <sszabo@megazone.bigpanda.com>
To: Ivan Voras <ivoras@fer.hr>
Cc: PFC <lists@boutiquenumerique.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: String matching
Date: Mon, 14 Feb 2005 12:42:14 -0800 (PST)
Message-ID: <20050214124119.C4920@megazone.bigpanda.com> (raw)
In-Reply-To: <42110AB2.1010903@fer.hr>
References: <421102A7.4090006@fer.hr>
	<opsl7d8pkvth1vuj@musicbox>
	<42110AB2.1010903@fer.hr>

On Mon, 14 Feb 2005, Ivan Voras wrote:

> PFC wrote:
> >
> >     normally you shouldn't have to do anything, it should just work :
> >
> >> select field from table where field like 'abc%'
>
> >     If it does not use the index, I saw on the mailing list that the
> > locale  could be an issue.
>
> Oh yes, I forgot about that :( I do have LC_COLLATE (on latin2)...
>
> It's a shame PostgreSQL doesn't allow collation rules on specific fields
> - this field I'm using here will always be 7bit ASCII :(

You can also create an index using a <typename>_pattern_ops operator
class which should be usable even with other collations.




view thread (8+ messages)  latest in thread

Message-ID: <20050214124119.C4920@megazone.bigpanda.com>
Permalink:  ../20050214124119.C4920@megazone.bigpanda.com/
Also on:    postgresql.org/message-id/20050214124119.C4920@megazone.bigpanda.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: sszabo@megazone.bigpanda.com, ivoras@fer.hr, lists@boutiquenumerique.com
  Subject: Re: String matching
  In-Reply-To: <20050214124119.C4920@megazone.bigpanda.com>

* 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