From: Alvaro Herrera <alvherre@commandprompt.com>
To: Florian Weimer <fweimer@bfk.de>
Cc: Alex Deucher <alexdeucher@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: strange performance regression between 7.4 and 8.1
Date: Fri, 2 Mar 2007 16:33:19 -0300
Message-ID: <20070302193319.GA12629@alvh.no-ip.org> (raw)
In-Reply-To: <82slco6n9t.fsf@mid.bfk.de>
References: <a728f9f90703011244r577d56d7y422ab4bd71bb760e@mail.gmail.com>
<82slco6n9t.fsf@mid.bfk.de>
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
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: alvherre@commandprompt.com, fweimer@bfk.de, alexdeucher@gmail.com
Subject: Re: strange performance regression between 7.4 and 8.1
In-Reply-To: <20070302193319.GA12629@alvh.no-ip.org>
* 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