Re: Time of executed query

Поиск
Список
Период
Сортировка
От Rodrigo De León
Тема Re: Time of executed query
Дата
Msg-id [email protected]
обсуждение исходный текст
Ответ на Time of executed query  ("Ezequias Rodrigues da Rocha" <[email protected]>)
Список pgsql-sql
On 3/6/07, Ezequias Rodrigues da Rocha <[email protected]> wrote:
> Hi list,
>
> It is possible to retrieve the time of a SQL statement leads to
> execute ? I would like to put in my application how much time each
> operation leads to finish.
>
> Any suggestion ?
>
> --
> Ezequias Rodrigues da Rocha
> http://ezequiasrocha.blogspot.com/
> use Mozilla Firefox:http://br.mozdev.org/firefox/

Use psql:

t=# \timing
t=# SELECT * FROM generate_series(1,100000) WHERE random() = 0.234;generate_series
-----------------
(0 rows)

Time: 125.000 ms
t=#

See:

http://www.postgresql.org/docs/8.2/static/app-psql.html


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