Re: [PERFORM] Indexes with descending date columns

2006-04-11 Thread Markus Schaber
Hi, Bruce, Bruce Momjian wrote: >>Ahh. There's a hack to do that by defining a new opclass that reverses < >>and >, and then doing ORDER BY project_id, id, date USING new_opclass. >> >>I think there's a TODO about this, but I'm not sure... > > Yes, and updated: > > * Allow the creation of

Re: [PERFORM] Indexes with descending date columns

2006-04-08 Thread Bruce Momjian
Jim C. Nasby wrote: > On Wed, Mar 29, 2006 at 12:52:31PM +0200, Theo Kramer wrote: > > On Fri, 2006-03-24 at 12:21, Jim C. Nasby wrote: > > > On Thu, Mar 23, 2006 at 01:09:49PM +0200, Theo Kramer wrote: > > > > ii If no to i, is it feasible to extend PostgreSQL to allow traversing > > > >an ind

Re: [PERFORM] Indexes with descending date columns

2006-03-31 Thread Jim C. Nasby
On Wed, Mar 29, 2006 at 12:52:31PM +0200, Theo Kramer wrote: > On Fri, 2006-03-24 at 12:21, Jim C. Nasby wrote: > > On Thu, Mar 23, 2006 at 01:09:49PM +0200, Theo Kramer wrote: > > > ii If no to i, is it feasible to extend PostgreSQL to allow traversing > > >an index in column descending and co

Re: [PERFORM] Indexes with descending date columns

2006-03-29 Thread Theo Kramer
On Fri, 2006-03-24 at 12:21, Jim C. Nasby wrote: > On Thu, Mar 23, 2006 at 01:09:49PM +0200, Theo Kramer wrote: > > ii If no to i, is it feasible to extend PostgreSQL to allow traversing > >an index in column descending and column ascending order - assuming > >an order by on more than one c

Re: [PERFORM] Indexes with descending date columns

2006-03-24 Thread Jim C. Nasby
On Thu, Mar 23, 2006 at 01:09:49PM +0200, Theo Kramer wrote: > ii If no to i, is it feasible to extend PostgreSQL to allow traversing >an index in column descending and column ascending order - assuming >an order by on more than one column with column order not >in the same direction a

Re: [PERFORM] Indexes with descending date columns

2006-03-23 Thread Tom Lane
Theo Kramer <[EMAIL PROTECTED]> writes: > If so, I would appreciate any pointers on where to start on this - > already fumbling my way through Interfacing Extensions To Indexes in the > manual... Search the PG list archives for discussions of reverse-sort opclasses. It's really pretty trivial, onc

Re: [PERFORM] Indexes with descending date columns

2006-03-23 Thread Theo Kramer
On Thu, 2006-03-23 at 16:16, Alvaro Herrera wrote: > Theo Kramer wrote: > > > All good input - thanks, however, before I start messing with my stuff > > which I know will be complex - some questions to any of the developers > > on the list. > > > > i Is it feasible to extend index creation to su

Re: [PERFORM] Indexes with descending date columns

2006-03-23 Thread Alvaro Herrera
Theo Kramer wrote: > All good input - thanks, however, before I start messing with my stuff > which I know will be complex - some questions to any of the developers > on the list. > > i Is it feasible to extend index creation to support descending >columns? ... this is supported on other co

Re: [PERFORM] Indexes with descending date columns

2006-03-23 Thread Theo Kramer
On Fri, 2006-03-17 at 08:25, [EMAIL PROTECTED] wrote: > > I have a performance problem when traversing a table in index order with > > multiple columns including a date column in date reverse order. Below > > follows a simplified description of the table, the index and the > > associated query > >

Re: [PERFORM] Indexes with descending date columns

2006-03-16 Thread andrew
> I have a performance problem when traversing a table in index order with > multiple columns including a date column in date reverse order. Below > follows a simplified description of the table, the index and the > associated query > > \d prcdedit > prcdedit_prcd | character(20)

[PERFORM] Indexes with descending date columns

2006-03-16 Thread Theo Kramer
Hi I have a performance problem when traversing a table in index order with multiple columns including a date column in date reverse order. Below follows a simplified description of the table, the index and the associated query \d prcdedit prcdedit_prcd | character(20) | prc