Re: [HACKERS] Re: order by and index path - Mailing list pgsql-hackers

From Martin
Subject Re: [HACKERS] Re: order by and index path
Date
Msg-id 199810151632.KAA09027@fkiller
Whole thread Raw
List pgsql-hackers
> > (who really selects nearly all rows from a 5M row
> >    table?).

I have to comment here from a practical standpoint.  My company does the above
dozens of times per day using Oracle 7 under Solaris.  This is a *VERY*
common operation in data processing organizations (like mine) running large
batch jobs in tight time windows.  At least under Oracle 7 (not sure about
ProgreSQL, still running tests), it is impractical to sort an extraction
using ORDER BY, but *MUCH* cheaper to index the fields wanted and then
artificially constrain the query
to convince the oprimizer to use the index for extraction.  You can
get the whole dataset in any order you want with few resources.  Again, we
do it all the time.

Marty

pgsql-hackers by date:

Previous
From: jwieck@debis.com (Jan Wieck)
Date:
Subject: Re: [HACKERS] Re: order by and index path
Next
From: jwieck@debis.com (Jan Wieck)
Date:
Subject: Re: [HACKERS] What about LIMIT in SELECT ?