arhiving rule

Поиск
Список
Период
Сортировка
От A. Van Hook
Тема arhiving rule
Дата
Msg-id 200012011145.eB1BjEF83961@mail.postgresql.org
обсуждение исходный текст
Ответы Re: arhiving rule  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-sql
I have, what I think is a simple rule to arrive transactions:
create rule usageupdt as on update to usage          do insert into usageHistory             (lkey, jan, feb, mar,
bowner,penalty, prepay, bal, notes,
 
change)          values             (new.lkey, old.jan, old.feb, old.mar, old.bowner,              old.penalty,
old.prepay,old.bal, old.notes, 'now')
 


the only problem is that once is rule is created,  new rows in the
archive table all have the same date!        -the date when the rule was created....

   thanks   art



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

Предыдущее
От: Jens Hartwig
Дата:
Сообщение: How to identify connected Users?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: arhiving rule