Re: Index ot being used - Mailing list pgsql-performance

From Kevin Grittner
Subject Re: Index ot being used
Date
Msg-id s2ad7232.064@gwmta.wicourts.gov
Whole thread Raw
In response to Index ot being used  (linux@alteeve.com)
List pgsql-performance
I agree that ignoring useless columns in an ORDER BY clause is less
important than ignoring index columns where the value is fixed.  There
is one use case for ignoring useless ORDER BY columns that leaps to
mind, however -- a column is added to the ORDER BY clause of a query to
help out the optimizer, then the indexes are modified such that that
column is no longer useful.  Whether this merits the programming effort
and performance hit you describe seems highly questionable, though.

-Kevin


>>> Tom Lane <tgl@sss.pgh.pa.us> 06/13/05 11:22 AM >>>

I don't think the use-case has been shown that justifies doing this much
work to ignore useless ORDER BY clauses.  The examples that have come up
in the past all suggest ignoring index columns not the other way 'round.
Can you make a case that we need to do that part of it?


pgsql-performance by date:

Previous
From: Yves Vindevogel
Date:
Subject: Re: Updates on large tables are extremely slow
Next
From: Bruno Wolff III
Date:
Subject: Re: Index ot being used