Re: different execution times of the same query - Mailing list pgsql-general

From Viktor Rosenfeld
Subject Re: different execution times of the same query
Date
Msg-id 20091020154014.GC1696@stan
Whole thread Raw
In response to Re: different execution times of the same query  (Craig Ringer <craig@postnewspapers.com.au>)
List pgsql-general
Hi,

I suppose the same is true for the time logged with log_duration, i.e.
it does not include the time needed to transfer the data to the client?

Or is it more like \timing in that respect?

Cheers,
Viktor

Craig Ringer wrote:

> EXPLAIN ANALYZE measures the time taken to execute the query. It doesn't
> include time required to transfer results to the client, possibly write
> them to disk, etc. It's really only for examining query plans as
> compared to actual execution of that plan.
>
> If you're more interested in *total* query execution time, including
> planning, execution, and transfer of results, you should usually use
> psql's \timing command, possibly along with output redirection. eg:

pgsql-general by date:

Previous
From: Sim Zacks
Date:
Subject: Re: cast numeric with scale and precision to numeric plain
Next
From: David Wall
Date:
Subject: Re: When much of a DB is large objects - PG 8.4