Re: strange performance regression between 7.4 and 8.1 - Mailing list pgsql-performance

From Alvaro Herrera
Subject Re: strange performance regression between 7.4 and 8.1
Date
Msg-id 20070302193319.GA12629@alvh.no-ip.org
Whole thread Raw
In response to Re: strange performance regression between 7.4 and 8.1  (Florian Weimer <fweimer@bfk.de>)
List pgsql-performance
Florian Weimer escribió:

> Locale settings make a huge difference for sorting and LIKE queries.
> We usually use the C locale and SQL_ASCII encoding, mostly for
> performance reasons.  (Proper UTF-8 can be enforced through
> constraints if necessary.)

Hmm, you are aware of varchar_pattern_ops and related opclasses, right?
That helps for LIKE queries in non-C locales (though you do have to keep
almost-duplicate indexes).

--
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

pgsql-performance by date:

Previous
From: Anton Rommerskirchen
Date:
Subject: Re: strange performance regression between 7.4 and 8.1
Next
From: "Alex Deucher"
Date:
Subject: Re: strange performance regression between 7.4 and 8.1