pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruno Wolff III <bruno@wolff.to>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: John A Meinel <john@arbash-meinel.com>
Cc: Kevin Grittner <Kevin.Grittner@wicourts.gov>
Cc: linux@alteeve.com
Cc: tobias@nordicbet.com
Cc: pgsql-performance@postgresql.org
Subject: Re: Index ot being used
Date: Mon, 13 Jun 2005 11:49:29 -0500
Message-ID: <20050613164929.GA12557@wolff.to> (raw)
In-Reply-To: <20542.1118679734@sss.pgh.pa.us>
References: <s2ad532e.099@gwmta.wicourts.gov>
	<42AD9D8D.9060503@arbash-meinel.com>
	<20050613154834.GA9203@wolff.to>
	<20542.1118679734@sss.pgh.pa.us>

On Mon, Jun 13, 2005 at 12:22:14 -0400,
  Tom Lane <tgl@sss.pgh.pa.us> wrote:
> 
> 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?

I don't think so. I don't think people are likely to order by constant
expressions except by adding them to the front to help optimization.
When I was thinking about this I was looking at what equivalences could
be used and didn't look back to see which ones would be useful in the
normal case. And I think it is a lot more likely people will leave out
columns they know not to be relevant than to include them.



view thread (31+ messages)  latest in thread

Message-ID: <20050613164929.GA12557@wolff.to>
Permalink:  ../20050613164929.GA12557@wolff.to/
Also on:    postgresql.org/message-id/20050613164929.GA12557@wolff.to

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: bruno@wolff.to, tgl@sss.pgh.pa.us, john@arbash-meinel.com, Kevin.Grittner@wicourts.gov, linux@alteeve.com, tobias@nordicbet.com
  Subject: Re: Index ot being used
  In-Reply-To: <20050613164929.GA12557@wolff.to>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox