pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Kyle Bateman <kyle@actarg.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: PG 8.2beta reordering working for this case?
Date: Mon, 09 Oct 2006 10:15:23 -0400
Message-ID: <1600.1160403323@sss.pgh.pa.us> (raw)
In-Reply-To: <4529DDCC.6010909@actarg.com>
References: <44DF6582.4000806@actarg.com>
	<82mza77rch.fsf@mid.bfk.de>
	<44E11E1A.8020507@actarg.com>
	<27367.1155606817@sss.pgh.pa.us>
	<44E349BA.4070205@actarg.com>
	<26676.1155747492@sss.pgh.pa.us>
	<44E3840E.4080502@actarg.com>
	<45284DBC.3060901@actarg.com>
	<25779.1160329771@sss.pgh.pa.us>
	<4529DDCC.6010909@actarg.com>

Kyle Bateman <kyle@actarg.com> writes:
> BTW, explain analyze still says 10 seconds of run time (and takes 10 
> seconds to run), but when I remove the explain analyze, the query runs 
> in about a second.  What's that all about?

Instrumentation overhead ... you're probably running this on a PC with a
very slow clock-reading capability.  Each node output row counted by
explain analyze takes two gettimeofday() calls, and apparently it's not
unusual for those to take several microseconds on cheap motherboards,
even when the CPU is nominally very fast.

			regards, tom lane



view thread (4+ messages)

Message-ID: <1600.1160403323@sss.pgh.pa.us>
Permalink:  ../1600.1160403323@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1600.1160403323@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-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, kyle@actarg.com
  Subject: Re: PG 8.2beta reordering working for this case?
  In-Reply-To: <1600.1160403323@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