arhiving rule

From: "A(dot) Van Hook" <hook(at)kcp(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: arhiving rule
Date: 2000-12-01 11:44:29
Message-ID: 200012011145.eB1BjEF83961@mail.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Miles Thompson 2000-12-01 12:22:47 Re: Re: [PHP] a script that queries database periodically
Previous Message Jens Hartwig 2000-12-01 10:40:52 How to identify connected Users?