Re: Time Stamp

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: Time Stamp
Дата
Msg-id 423EEEF2.1010800@archonet.com
обсуждение исходный текст
Ответ на Time Stamp  (Hrishikesh Deshmukh <hdeshmuk@gmail.com>)
Ответы Re: Time Stamp  (Hrishikesh Deshmukh <hdeshmuk@gmail.com>)
Список pgsql-general
Hrishikesh Deshmukh wrote:
> Hi All,
>
> I want to get a "timestamp" of the queries that i run!
> Is there a builtin command to do this/ does one need to write a
> function/stored procedure!
> Any pointers will help.

You don't say where you want this "timestamp".

In psql look into "\timing" (see the man page)
To record this in the logs, see the configuration section of the manual,
specifically "Error Reporting and Logging"

--
   Richard Huxton
   Archonet Ltd

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

Предыдущее
От: Scott Marlowe
Дата:
Сообщение: Re: Time Stamp
Следующее
От: Stephen Howie
Дата:
Сообщение: Re: Help with transactions