arhiving rule - Mailing list pgsql-sql

From A. Van Hook
Subject arhiving rule
Date
Msg-id 200012011145.eB1BjEF83961@mail.postgresql.org
Whole thread Raw
Responses Re: arhiving rule  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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 by date:

Previous
From: Jens Hartwig
Date:
Subject: How to identify connected Users?
Next
From: Tom Lane
Date:
Subject: Re: arhiving rule