Re: How can I make note of time taken by each query to execute in Triggers

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: How can I make note of time taken by each query to execute in Triggers
Дата
Msg-id 23340.1043299155@sss.pgh.pa.us
обсуждение исходный текст
Ответ на How can I make note of time taken by each query to execute in Triggers  ("shreedhar" <shreedhar@lucidindia.net>)
Список pgsql-admin
"shreedhar" <shreedhar@lucidindia.net> writes:
> I would like read time taken by each query in my triggers.
> so i created a temporary table and inserted timestamp before i start qurey
> and inserted again timestamp after completion of the query. But i am getting
> same time. How can I get the time taken by each query.

timeofday().  See
http://www.ca.postgresql.org/users-lounge/docs/7.3/postgres/functions-datetime.html#FUNCTIONS-DATETIME-CURRENT

            regards, tom lane

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

Предыдущее
От: Andrew Biagioni
Дата:
Сообщение: Re: How can I make note of time taken by each query to execute in Triggers
Следующее
От: "Yudha Setiawan"
Дата:
Сообщение: OOT: history of my command