Re: Non Matching Records in Two Tables

From: Ken Hill <ken(at)scottshill(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Markus Schaber <schabi(at)logix-tt(dot)com>, pgsql-sql(at)postgresql(dot)org
Subject: Re: Non Matching Records in Two Tables
Date: 2006-02-14 21:25:36
Message-ID: 1139952337.3083.68.camel@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Tue, 2006-02-14 at 16:07 -0500, Tom Lane wrote:

> Ken Hill <ken(at)scottshill(dot)com> writes:
> > Seq Scan on ncccr10 (cost=0.00..20417160510.08 rows=305782 width=104)
> > Filter: (NOT (subplan))
> > SubPlan
> > -> Seq Scan on ncccr9 (cost=0.00..65533.71 rows=494471 width=104)
> > (4 rows)
>
> > Any ideas why it is so slow?
>
> "NOT (subplan)" is horrendous (and the system knows it, note the huge
> cost estimate). Try increasing work_mem enough so you get a hashed
> subplan instead.
>
> regards, tom lane

How do I ncrease work_mem?

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Ken Hill 2006-02-14 21:30:34 Re: create table and data types
Previous Message Ken Hill 2006-02-14 21:24:54 Re: Non Matching Records in Two Tables