pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Gopal <gopal@getmapping.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Postgres scalability and performance on windows
Date: Fri, 24 Nov 2006 19:10:05 -0500
Message-ID: <1164.1164413405@sss.pgh.pa.us> (raw)
In-Reply-To: <A5DE6132B8D812419321747E42710E2204C060@EXCHANGE01.gm.local>
References: <A5DE6132B8D812419321747E42710E2204C060@EXCHANGE01.gm.local>

"Gopal" <gopal@getmapping.com> writes:
> Thanks for your suggestions. Here's an output of the explain analyse.

What's the query exactly, and what are the schemas of the tables it
uses (psql \d descriptions would do)?

The actual runtime seems to be almost all spent in the hash aggregation
step:

>          ->  HashAggregate  (cost=58.13..58.16 rows=1 width=117) (actual time=15.572..15.573 rows=2 loops=1)
>              ->  Hash IN Join  (cost=3.34..58.10 rows=7 width=117) (actual time=0.261..0.544 rows=50 loops=1)

15 msec seems like a long time to aggregate only 50 rows, so I'm
wondering what aggregates are being calculated and over what
datatypes...

			regards, tom lane



view thread (9+ messages)  latest in thread

Message-ID: <1164.1164413405@sss.pgh.pa.us>
Permalink:  ../1164.1164413405@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1164.1164413405@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, gopal@getmapping.com
  Subject: Re: Postgres scalability and performance on windows
  In-Reply-To: <1164.1164413405@sss.pgh.pa.us>

* 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