What does \timing measure?

Поиск
Список
Период
Сортировка
От Mathieu Dubois
Тема What does \timing measure?
Дата
Msg-id 4D9E15FC.4010509@limsi.fr
обсуждение исходный текст
Ответы Re: What does \timing measure?  (Josh Kupershmidt <schmiddy@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: java4dev
Дата:
Сообщение: Re: how to call stored procedures with output parameters
Следующее
От: Josh Kupershmidt
Дата:
Сообщение: Re: What does \timing measure?