Re: How to get the used time when operate a select query?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: How to get the used time when operate a select query?
Дата
Msg-id 26150.1025192683@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: How to get the used time when operate a select query?  (nconway@klamath.dyndns.org (Neil Conway))
Список pgsql-general
nconway@klamath.dyndns.org (Neil Conway) writes:
> BTW in 7.3, you'll be able to do "\timing" inside psql to enable
> client-side timing. i.e.

> nconway=# select 1;
>  ?column?
>  ----------
>          1
> (1 row)

> Total time: 0.001s

Why is the precision of the display restricted to milliseconds?
Clock readings are usually good to a few microseconds on modern
machines.

I'd suggest showing the result in the same format used by EXPLAIN
ANALYZE, which is milliseconds with a fractional part.

            regards, tom lane



В списке pgsql-general по дате отправления:

Предыдущее
От: mordicus
Дата:
Сообщение: Re: pg_dump / consistent snapshot / backup
Следующее
От: Gregory Seidman
Дата:
Сообщение: Re: script to keep views "correct"?