[possibly] dumb question

Поиск
Список
Период
Сортировка
От Dmitry Morozovsky
Тема [possibly] dumb question
Дата
Msg-id Pine.BSF.4.21.0105042135321.52803-100000@woozle.rinet.ru
обсуждение исходный текст
Ответы Re: [possibly] dumb question  (Joel Burton <jburton@scw.org>)
Список pgsql-admin
Hello colleagues,

sorry for dumb question, but can anybody advise me what default statement
should I write to fill timestamp column in record to the time of
insertion. 'now'::timestamp leads to timestamp of database creation for
all records, 'current' can not be converted to timestamp...

also, I'm rather new to triggers, can anybody help me how should look the
trigger for tracking last modification time of the record (yes, I do know
I can simply put 'now' in update statement, but I want to disable ability
to change such column by hand)

Thanks in advance.

Sincerely,
D.Marck                                   [DM5020, DM268-RIPE, DM3-RIPN]
------------------------------------------------------------------------
*** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru ***
------------------------------------------------------------------------


В списке pgsql-admin по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: time calculations
Следующее
От: tsattler@speakeasy.net
Дата:
Сообщение: Queries