| От | Sevo Stille |
|---|---|
| Тема | Re: [GENERAL] automatic timestamp |
| Дата | |
| Msg-id | 389774D1.41F1859D@ip23.net обсуждение исходный текст |
| Ответ на | automatic timestamp (Marc Tardif <admin@wtbwts.com>) |
| Список | pgsql-general |
Marc Tardif wrote: > > Does postgresql have an automatic timestamp, something built-in which > could save me from creating an extra date field? Time travel implied something like that, but that was tied to pg_time, which is gone now, and, being a log rather than a table, was not accessible from userland, AFAIR. However, while you have to create an extra timestamp field for it, it is trivial to have that field run along without ever maintaining it actively - give it a DEFAULT CURRENT_TIMESTAMP, and make sure that it is the last in the table, so that you can insert values(). Sevo -- Sevo Stille sevo@ip23.net
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера