What does \timing measure? - Mailing list pgsql-novice

From Mathieu Dubois
Subject What does \timing measure?
Date
Msg-id 4D9E15FC.4010509@limsi.fr
Whole thread Raw
Responses Re: What does \timing measure?
List pgsql-novice
Hello,

I want to compare the time needed to execute 2 queries (which give the
same results).
Of course this depends on the server load, the network, etc.

The basic idea is to use "\timing on" under psql but what is the
returned time? The time to execute the query on the server or the time
to fetch the results?

In the first case the measurement would be more useful (no effect of the
network and the client side).

I have also a methodological question.
The idea is to measure several times the same query (let's say 50 times)
to get basic statistics.
If I repeat the same query 50 times will the server use some caching
mechanism to accelerate the query? In my case, this is not wanted
(because I want to measure the normal query time).

Thanks in advance,
Mathieu

pgsql-novice by date:

Previous
From: java4dev
Date:
Subject: Re: how to call stored procedures with output parameters
Next
From: Josh Kupershmidt
Date:
Subject: Re: What does \timing measure?