pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Marko Tiikkaja <marko@joh.to>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #8598: Row count estimates of partial indexes
Date: Mon, 18 Nov 2013 09:08:53 -0500
Message-ID: <9078.1384783733@sss.pgh.pa.us> (raw)
In-Reply-To: <5289E650.5070802@joh.to>
References: <E1Vi1ve-0005cP-Ax@wrigleys.postgresql.org>
	<28474.1384705755@sss.pgh.pa.us>
	<52891F32.8010902@joh.to>
	<16493.1384719519@sss.pgh.pa.us>
	<5289E650.5070802@joh.to>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Marko Tiikkaja <marko@joh.to> writes:
> On 11/17/13 9:18 PM, Tom Lane wrote:
>> The long-term answer as far as Postgres is concerned is to learn about
>> cross-column correlations, but that's not happening in the near future.

> I'm completely clueless about how the planner works, but wouldn't it be 
> easier to have some kind of separate stats for the conditions in partial 
> indexes?  It seems better in all cases than trying infer the stats from 
> cross-column correlations, even if we had that.

There's been some discussion of providing a way to hint to ANALYZE about
which combinations of columns are worth gathering cross-column statistics
for.  But partial index predicates seem like a pretty bad mechanism for
that.

			regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (9+ messages)  latest in thread

Message-ID: <9078.1384783733@sss.pgh.pa.us>
Permalink:  ../9078.1384783733@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/9078.1384783733@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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, marko@joh.to
  Subject: Re: BUG #8598: Row count estimates of partial indexes
  In-Reply-To: <9078.1384783733@sss.pgh.pa.us>
  References: <E1Vi1ve-0005cP-Ax@wrigleys.postgresql.org> <28474.1384705755@sss.pgh.pa.us> <52891F32.8010902@joh.to> <16493.1384719519@sss.pgh.pa.us> <5289E650.5070802@joh.to> <9078.1384783733@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 DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox