Re: [SQL] Monitoring a Query

Поиск
Список
Период
Сортировка
От 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  (Manfred Koizar <mkoi-pg@aon.at>)
Список 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 по дате отправления:

Предыдущее
От: Manfred Koizar
Дата:
Сообщение: Re: [SQL] Monitoring a Query
Следующее
От: Vernon Wu
Дата:
Сообщение: How to i18n work with jdbc?