| От | Tom Lane |
|---|---|
| Тема | Re: [SQL] Monitoring a Query |
| Дата | |
| Msg-id | 22827.1032800742@sss.pgh.pa.us обсуждение |
| Ответ на | Re: [SQL] Monitoring a Query (Manfred Koizar <mkoi-pg@aon.at>) |
| Ответы |
Re: [SQL] CURRENT_TIMESTAMP
|
| Список | pgsql-general |
Manfred Koizar <mkoi-pg@aon.at> writes:
> This has been discussed before and I know I'm going to get flamed for
> this, but IMHO having now() (which is a synonym for CURRENT_TIMESTAMP)
> return the start time of the current transaction is a bug, or at least
> it is not conforming to the standard.
As you say, it's been discussed before. We concluded that the spec
defines the behavior as implementation-dependent, and therefore we
can pretty much do what we want.
If you want exact current time, there's always timeofday().
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера