From: Josh Berkus <josh@agliodbs.com>
To: pgsql-performance@postgresql.org
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Subject: Re: IN() Optimization issue in 8.0rc5
Date: Sat, 15 Jan 2005 13:32:27 -0800
Message-ID: <200501151332.27896.josh@agliodbs.com> (raw)
In-Reply-To: <11485.1105822417@sss.pgh.pa.us>
References: <200501151223.10372.josh@agliodbs.com>
<11485.1105822417@sss.pgh.pa.us>
Tom,
> Hmm. What you want for a NOT IN is for it to say
> Filter: (NOT (hashed subplan))
> which you are not getting. What's the datatypes of the two personid
> columns?
INT
> Is the 400k-row estimate for person_attributes reasonable?
Yes, the estimates are completely accurate.
> Maybe you need to increase work_mem (nee sort_mem) to allow a
> 400k-row hash table?
Aha, that's it. I thought I'd already set that, but apparently it was a
different session. Fixed. Thanks!
--
Josh Berkus
Aglio Database Solutions
San Francisco
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: josh@agliodbs.com, tgl@sss.pgh.pa.us
Subject: Re: IN() Optimization issue in 8.0rc5
In-Reply-To: <200501151332.27896.josh@agliodbs.com>
* 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