Re: [GENERAL] multi column index and order by

2005-01-05 Thread Stephan Szabo
On Wed, 5 Jan 2005, Mage wrote: > "order by a asc b desc" > > how can I create an index for this? You need to create an operator class for reversed comparison of whatever type b is and then use it on b in the index definition. Something like (however, you should really use a C function for the

Re: [GENERAL] multi column index and order by

2005-01-05 Thread Bruno Wolff III
On Wed, Jan 05, 2005 at 15:35:22 +0100, Mage <[EMAIL PROTECTED]> wrote: > Hello, > > "order by a asc b desc" > > how can I create an index for this? Currently you can't directly. In recent versions of Postgres you have some options: If one of the types has a normal minus operator, then

[GENERAL] multi column index and order by

2005-01-05 Thread Mage
Hello, "order by a asc b desc" how can I create an index for this? Mage ---(end of broadcast)--- TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]