From: Ivan Voras <ivoras@fer.hr>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-performance@postgresql.org
Subject: Re: Curious sorting puzzle
Date: Thu, 08 Jun 2006 01:04:53 +0200
Message-ID: <44875B95.5000005@fer.hr> (raw)
In-Reply-To: <17522.1149714973@sss.pgh.pa.us>
References: <4487285A.5050104@fer.hr>
<17522.1149714973@sss.pgh.pa.us>
Tom Lane wrote:
>>An ideal solution would be to have a
>>"not-locale-affected-varchar" field type :)
>
>
> If you're just storing ASCII then I think bytea might work for this.
> Do you need any actual text operations (like concatenation), or this
> just a store-and-retrieve field?
I've just tested bytea and it looks like a perfect solution - it supports:
- character-like syntax
- indexes
- uses indexes with LIKE 'x%' queries
- SUBSTRING()
That's good enough for us - it seems it's just what we need - a
string-like type with byte collation.
Thanks!
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: ivoras@fer.hr, tgl@sss.pgh.pa.us
Subject: Re: Curious sorting puzzle
In-Reply-To: <44875B95.5000005@fer.hr>
* 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