Re: some tables unicode, some ascii? - Mailing list pgsql-general

From Michael Fuhr
Subject Re: some tables unicode, some ascii?
Date
Msg-id 20070225050117.GA62625@winnie.fuhr.org
Whole thread Raw
In response to some tables unicode, some ascii?  (Gene <genekhart@gmail.com>)
List pgsql-general
On Sat, Feb 24, 2007 at 11:35:10PM -0500, Gene wrote:
> Is there a way to get the benefit of using ascii and the "C" locale
> for index usage on certain tables and unicode encoding on others
> (where peformance is not an issue)?  In particular the planner will
> not use index with Unicode on "like '123%' " queries.

See "Operator Classes" in the "Indexes" chapter of the documentation.

http://www.postgresql.org/docs/8.2/interactive/indexes-opclass.html

--
Michael Fuhr

pgsql-general by date:

Previous
From: "Joshua D. Drake"
Date:
Subject: Re: Inserting a new column in between.
Next
From: "Jaime Casanova"
Date:
Subject: Re: Why can't I put a BEFORE EACH ROW trigger on a view?