agora inbox for pgsql-performance@postgresql.org  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Peter Geoghegan <peter@2ndquadrant.com>
Cc: Thom Brown <thom@linux.com>
Cc: pgsql-performance <pgsql-performance@postgresql.org>
Subject: Re: Unused index influencing sequential scan plan
Date: Thu, 18 Oct 2012 13:06:32 -0400
Message-ID: <603.1350579992@sss.pgh.pa.us> (raw)
In-Reply-To: <CAEYLb_UD3jmHyCTnfrfywcNG5A4aSt9X8X+9TTVojdxgW4Asnw@mail.gmail.com>
References: <CAA-aLv4aukjF=03XNV4o2UKWqweGd+XaHK0y1aTsgGGXmzVcDA@mail.gmail.com>
	<102.1350578667@sss.pgh.pa.us>
	<CAA-aLv68tNQt0-CR2b3wxqu+D0FUDz+bTVPnE6gE6riKCbXERw@mail.gmail.com>
	<293.1350579133@sss.pgh.pa.us>
	<CAEYLb_UD3jmHyCTnfrfywcNG5A4aSt9X8X+9TTVojdxgW4Asnw@mail.gmail.com>

Peter Geoghegan <peter@2ndquadrant.com> writes:
> Is there a case to be made for a index access method whose
> pseudo-indexes costs essentially nothing to maintain, and simply
> represent an ongoing obligation for ANALYZE to provide statistics for
> an expression?

If we were going to support it, I think we'd be better off exposing such
a feature as DDL having nothing to do with indexes.  Not sure it's worth
the trouble though.  The ANALYZE wart to compute stats for index
expressions has been there a long time, and there's been essentially
zero field demand for another way to do it.  What people really seem to
care about is more intelligence about making use of expression indexes
to avoid recalculation of the expression --- something you'd not get
from a stats-only feature.

			regards, tom lane




view thread (12+ messages)  latest in thread

Message-ID: <603.1350579992@sss.pgh.pa.us>
Permalink:  ../603.1350579992@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/603.1350579992@sss.pgh.pa.us

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: tgl@sss.pgh.pa.us, peter@2ndquadrant.com, thom@linux.com
  Subject: Re: Unused index influencing sequential scan plan
  In-Reply-To: <603.1350579992@sss.pgh.pa.us>

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

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