Re: IN() Optimization issue in 8.0rc5 - Mailing list pgsql-performance

From Josh Berkus
Subject Re: IN() Optimization issue in 8.0rc5
Date
Msg-id 200501151332.27896.josh@agliodbs.com
Whole thread Raw
In response to Re: IN() Optimization issue in 8.0rc5  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-performance
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

pgsql-performance by date:

Previous
From: Tom Lane
Date:
Subject: Re: IN() Optimization issue in 8.0rc5
Next
From: amrit@health2.moph.go.th
Date:
Subject: Re: Increasing RAM for more than 4 Gb. using postgresql