From: Abhijit Menon-Sen <ams@oryx.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-performance@postgresql.org
Cc: arnt@oryx.com
Subject: Re: 10x rowcount mis-estimation favouring merge over nestloop
Date: Fri, 10 Nov 2006 12:37:00 +0530
Message-ID: <20061110070700.GA2751@penne.toroid.org> (raw)
In-Reply-To: <16547.1163139324@sss.pgh.pa.us>
References: <20061110051245.GA1928@penne.toroid.org>
<16547.1163139324@sss.pgh.pa.us>
At 2006-11-10 01:15:24 -0500, tgl@sss.pgh.pa.us wrote:
>
> it seems that "field<=12" is true for a much smaller fraction of the
> rows satisfying (part!='' or value ilike '%,%') than for the general
> population of rows in the header_fields table.
Indeed. One-sixth of the rows in the entire table match field<=12, but
only one-fifteenth of the rows matching the part/value condition also
match field<=12.
> There's been some speculation about obtaining stats on partial indexes
> as a substitute for solving the general problem of correlation stats,
Oh. So my partial index's rowcount isn't being considered at all? That
explains a lot. Ok, I'll just run the query with mergejoin and seqscan
disabled. (I can't think of much else to do to speed it up, anyway.)
Thanks.
-- ams
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: ams@oryx.com, tgl@sss.pgh.pa.us, arnt@oryx.com
Subject: Re: 10x rowcount mis-estimation favouring merge over nestloop
In-Reply-To: <20061110070700.GA2751@penne.toroid.org>
* 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