Re: Curious sorting puzzle

From: Ivan Voras <ivoras(at)fer(dot)hr>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Curious sorting puzzle
Date: 2006-06-07 23:04:53
Message-ID: 44875B95.5000005@fer.hr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

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!

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message soni de 2006-06-08 06:07:44 Re: Regarding ALTER Command
Previous Message Jim C. Nasby 2006-06-07 22:17:25 Re: vacuuming problems continued