Re: odd variances in count(*) times

From: Stephen Frost <sfrost(at)snowman(dot)net>
To: Merlin Moncure <mmoncure(at)gmail(dot)com>
Cc: Pg Performance list <pgsql-performance(at)postgresql(dot)org>
Subject: Re: odd variances in count(*) times
Date: 2006-10-09 18:30:26
Message-ID: 20061009183026.GT24675@kenobi.snowman.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

* Merlin Moncure (mmoncure(at)gmail(dot)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

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Merlin Moncure 2006-10-09 18:41:07 Re: odd variances in count(*) times
Previous Message Merlin Moncure 2006-10-09 18:17:24 odd variances in count(*) times