Re: Joins and DELETE FROM

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Kynn Jones" <kynnjo(at)gmail(dot)com>
Cc: "Heikki Linnakangas" <heikki(at)enterprisedb(dot)com>, pgsql-performance(at)postgresql(dot)org
Subject: Re: Joins and DELETE FROM
Date: 2008-03-08 20:08:46
Message-ID: 6359.1205006926@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

"Kynn Jones" <kynnjo(at)gmail(dot)com> writes:
> So it seems like turning off ENABLE_SEQSCAN is the way to go.

Try reducing random_page_cost a bit instead. Also, have you got
effective_cache_size set to something that's realistic for your
machine?

One problem with this test is that your smaller tables probably fit in
memory whereas the big ones may not, so it's not a given that your test
accurately reflects how the real query will go down.

regards, tom lane

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Heikki Linnakangas 2008-03-08 20:25:09 Re: Joins and DELETE FROM
Previous Message Kynn Jones 2008-03-08 19:02:03 Re: Joins and DELETE FROM