pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephen Frost <sfrost@snowman.net>
To: Merlin Moncure <mmoncure@gmail.com>
Cc: Pg Performance list <pgsql-performance@postgresql.org>
Subject: Re: odd variances in count(*) times
Date: Mon, 9 Oct 2006 14:30:26 -0400
Message-ID: <20061009183026.GT24675@kenobi.snowman.net> (raw)
In-Reply-To: <b42b73150610091117n29e8d9d5yed07abe8a228593e@mail.gmail.com>
References: <b42b73150610091117n29e8d9d5yed07abe8a228593e@mail.gmail.com>

* Merlin Moncure (mmoncure@gmail.com) wrote:
> explain analyze select 5000!;
> A: 2.4 seconds
> B: 1.8 seconds
> 
> explain analyze select count(*) from generate_series(1,500000);
> A: 0.85 seconds
> B: 4.94 seconds

Try w/o the explain analyze.  It adds quite a bit of overhead and that
might be inconsistant between the systems (mainly it may have to do with
the gettimeofday() calls being implemented differently between Windows
and Linux..).

	Thanks,

		Stephen

Attachments:

  signature.asc (application/pgp-signature, 188B) download

view thread (6+ messages)  latest in thread

Message-ID: <20061009183026.GT24675@kenobi.snowman.net>
Permalink:  ../20061009183026.GT24675@kenobi.snowman.net/
Also on:    postgresql.org/message-id/20061009183026.GT24675@kenobi.snowman.net

 · 

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: sfrost@snowman.net, mmoncure@gmail.com
  Subject: Re: odd variances in count(*) times
  In-Reply-To: <20061009183026.GT24675@kenobi.snowman.net>

* 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