Does LC_CTYPE affect performance, index use?

From: Steven Dodd <steve(at)streetcontxt(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Does LC_CTYPE affect performance, index use?
Date: 2013-11-20 19:57:04
Message-ID: A5DC200A-FAE8-49AE-AE5E-3F3330B70E63@streetcontxt.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I've read that setting LC_COLLATE to something other than "C" / "POSIX" negatively affects performance, and disables use of indexes for LIKE, etc...

Does the same apply to LC_CTYPE?

I am considering setting LC_COLLATE = "C", and LC_CTYPE = "en_US.UTF-8", and using LOWER() to case-fold strings for sorting, and equality. The motivation for setting LC_CTYPE = "en_US.UTF-8", instead of "C", is to gain at least some degree of case-folding for international characters.

Does this sound like a reasonable plan?

Thanks,

Steven Dodd | Software Developer | Street Contxt
416-596-9011 | 19 Mercer St, Suite 301, Toronto, ON, M5V 1H2

--
This e-mail message is intended for the named recipient(s) above, and may
contain information that is privileged, confidential and/or exempt from
disclosure under applicable law. If you have received this message in
error, or are not the named recipient(s), please do not read the content.
Instead, immediately notify the sender and delete this e-mail message. Any
unauthorized use, disclosure or distribution is strictly prohibited.
Quantify Labs Inc and the sender assume no responsibility for any errors,
omissions, or readers' misinterpretations and/ or understanding of the
content or transmission of this email.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Joey Quinn 2013-11-20 21:12:49 hstore
Previous Message Jeff Janes 2013-11-20 19:33:05 Re: Postgres as In-Memory Database?