pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Josh Berkus <josh@agliodbs.com>
To: pgsql-performance@postgresql.org
Cc: Joost Kraaijeveld <J.Kraaijeveld@Askesis.nl>
Subject: Re: Measuring server performance with psql and pgAdmin
Date: Tue, 26 Oct 2004 12:20:21 -0700
Message-ID: <200410261220.21435.josh@agliodbs.com> (raw)
In-Reply-To: <A3D1526C98B7C1409A687E0943EAC41001EACD@obelix.askesis.nl>
References: <A3D1526C98B7C1409A687E0943EAC41001EACD@obelix.askesis.nl>

Joost,

> 1. The manual says about "explain analyze" : "The ANALYZE option causes the
> statement to be actually executed, not only planned. The total elapsed time
> expended within each plan node (in milliseconds) and total number of rows
> it actually returned are added to the display." Does this time include
> datatransfer or just the time the database needs to collect the data,
> without any data transfer? 

Correct.  It's strictly backend time.

> 2. If the time is without data transfer to the 
> client, is there a reliable way to measure the time needed to run the query
> and get the data (without the overhead of a program that does something
> with the data)?

in PSQL, you can use \timing

-- 
--Josh

Josh Berkus
Aglio Database Solutions
San Francisco



view thread (2+ messages)

Message-ID: <200410261220.21435.josh@agliodbs.com>
Permalink:  ../200410261220.21435.josh@agliodbs.com/
Also on:    postgresql.org/message-id/200410261220.21435.josh@agliodbs.com

 · 

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: josh@agliodbs.com, J.Kraaijeveld@Askesis.nl
  Subject: Re: Measuring server performance with psql and pgAdmin
  In-Reply-To: <200410261220.21435.josh@agliodbs.com>

* 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