From: A. Van Hook <hook@kcp.com>
To: pgsql-sql@postgresql.org
Subject: arhiving rule
Date: Fri, 01 Dec 2000 11:44:29 +0000
Message-ID: <200012011145.eB1BjEF83961@mail.postgresql.org> (raw)
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: hook@kcp.com
Subject: Re: arhiving rule
In-Reply-To: <200012011145.eB1BjEF83961@mail.postgresql.org>
References: <200012011145.eB1BjEF83961@mail.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox