| От | Bruce Momjian |
|---|---|
| Тема | Re: now() does not change within a transaction |
| Дата | |
| Msg-id | 200204181550.g3IFovL13125@candle.pha.pa.us обсуждение исходный текст |
| Ответ на | now() does not change within a transaction (Christoph Haller <ch@rodos.fzk.de>) |
| Список | pgsql-sql |
Christoph Haller wrote: > Hi pgsql-sql list, > I did some testing around tables using a column > timestamp with time zone not null default now(). > I have noticed a valuable feature: > As long as being inside a transaction initiated by > begin; > the return value of the now() function does not change. > Is this intended - as written in the documentation? > Can I rely on it, so future releases of PostgreSQL > will act the same. Yes, this is intended and will not change. -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 853-3000+ If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania19026
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера