Re: Index order

From: Glyn Astill <glynastill(at)yahoo(dot)co(dot)uk>
To: Oleg Bartunov <oleg(at)sai(dot)msu(dot)su>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Index order
Date: 2008-09-16 13:21:40
Message-ID: 503999.9859.qm@web25807.mail.ukl.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

>
> > Hi chaps,
> >
> > I was just wondering if there's any way to tweak
> the way an an index is ordered on a text field?
>
> Yes, it's called functional index. Write your function,
> which does
> whatever you want with your data and create index
> (foo(artist))
>

Hmm, I understand what you're saying, but how ion earth do I create a function that reorders the result based on all the different characters ^ . * etc that could cause this?

Also does anyone know why this happens? Why is the caret ignored ibn the index order - surely that just plain wrong?

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Dragan Ciric 2008-09-16 13:21:48 Backend timeout
Previous Message Glyn Astill 2008-09-16 13:15:00 Re: Obfuscated stored procedures (was Re: Oracle and Postgresql)