| От | Tom Lane |
|---|---|
| Тема | Re: ODBC Layer and the now() function |
| Дата | |
| Msg-id | 29463.1133794762@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | ODBC Layer and the now() function (Byrne Kevin-kbyrne01 <kbyrne01@motorola.com>) |
| Список | pgsql-general |
Byrne Kevin-kbyrne01 <kbyrne01@motorola.com> writes:
> Moserver receives the event - timestamps it as 't1'
> -- time lapse before moserver computes the transaction and gives it to odbc.
> Txn_begin- now() gets frozen to 't2'
> Insert - now() should put it as 't2'
> Txn_end()- done.
> So firstly t2 should always be > t1 and the difference could be a few seconds but I found sometimes t2 < t1!..
I'd wonder about clock skew between the machine that's running
"moserver" and the machine running Postgres.
Another possibility is that the "transaction begin" doesn't happen when
you think it does. Sometimes driver-level code like ODBC will issue
BEGIN behind your back ...
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера