| От | Tom Lane |
|---|---|
| Тема | Re: Timestamps Look Incorrect? |
| Дата | |
| Msg-id | 5058.1127943045@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Timestamps Look Incorrect? ("Lane Van Ingen" <lvaningen@esncc.com>) |
| Список | pgsql-novice |
"Lane Van Ingen" <lvaningen@esncc.com> writes: > I have used localtimestamp, now(), and > to_char(localtimestamp,'HH24:MI:SS.US') to display current time at different > points in the stored procedure; even though I have requested microseconds, > all of the results being returned are all the same: the time that is shown > on the very first RAISE NOTICE is exactly the same as the last one, even > though I stored the time into different variables. That's what it's supposed to do. Please read the documentation: http://www.postgresql.org/docs/8.0/static/functions-datetime.html#FUNCTIONS-DATETIME-CURRENT You need to use timeofday() if you want to measure intra-transaction intervals. regards, tom lane
В списке pgsql-novice по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера