| От | Gregory Wood |
|---|---|
| Тема | Re: Re: timestamp goober |
| Дата | |
| Msg-id | 009901c091f9$b4b26bd0$7889ffcc@comstock.com обсуждение исходный текст |
| Ответ на | Re: Re: timestamp goober (Alex Pilosov <alex@pilosoft.com>) |
| Список | pgsql-general |
Oh, I just made sure that I started a new transaction :) I actually prefer that timestamps are handled that way... once I realized *why* I had triggered INSERTs that were stamped 45 minutes earlier than I thought they should have been. Greg > Yes, and that's a feature :) > > If you want a wall clock time, use timenow() > > I noticed that timestamps (in my case CURRENT_TIMESTAMP) are taken from the > > beginning of a transaction. You didn't mention how you were accessing the > > database, but if you were updating everything inside the same transaction, > > everything would be timestamped with the time that transaction began.
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера