pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Gavin Sherry <swm@alcove.com.au>
To: Shoaib Burq (VPAC) <sab@vpac.org>
Cc: John A Meinel <john@arbash-meinel.com>
Cc: Russell Smith <mr-russ@pws.com.au>
Cc: Jeff <threshar@torgo.978.org>
Cc: pgsql-performance@postgresql.org
Subject: Re: two queries and dual cpu (perplexed)
Date: Fri, 22 Apr 2005 13:57:17 +1000 (EST)
Message-ID: <Pine.LNX.4.58.0504221353370.4231@linuxworld.com.au> (raw)
In-Reply-To: <Pine.LNX.4.44.0504221328410.14851-200000@hp.vpac.org>
References: <Pine.LNX.4.44.0504221328410.14851-200000@hp.vpac.org>

On Fri, 22 Apr 2005, Shoaib Burq (VPAC) wrote:

> Please see attached the output from explain analyse. This is with the
>
> 	shared_buffers = 10600
> 	work_mem = 102400
> 	enable_seqscan = true
>
> BTW I guess should mention that I am doing the select count(*) on a View.
>
> Ran the Explain analyse with the nestedloop disabled but it was taking
> forever... and killed it after 30mins.

Try increasing stats collection on ClimateChangeModel40.ClimateId:

alter table ClimateChangeModel40 alter column ClimateId set statistics 1000;
analyze ClimateChangeModel40;

Gavin



view thread (18+ messages)  latest in thread

Message-ID: <Pine.LNX.4.58.0504221353370.4231@linuxworld.com.au>
Permalink:  ../Pine.LNX.4.58.0504221353370.4231@linuxworld.com.au/
Also on:    postgresql.org/message-id/Pine.LNX.4.58.0504221353370.4231@linuxworld.com.au

 · 

reply

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: swm@alcove.com.au, sab@vpac.org, john@arbash-meinel.com, mr-russ@pws.com.au, threshar@torgo.978.org
  Subject: Re: two queries and dual cpu (perplexed)
  In-Reply-To: <Pine.LNX.4.58.0504221353370.4231@linuxworld.com.au>

* 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