Re: [SQL] Adding a rule to update a last_changed field

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: grant(at)intekom(dot)com
Cc: pgsql-sql(at)postgreSQL(dot)org
Subject: Re: [SQL] Adding a rule to update a last_changed field
Date: 1999-10-22 15:45:26
Message-ID: 20774.940607126@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

grant(at)intekom(dot)com writes:
> I'm trying to use a rule to maintain a last_changed field.

Use a trigger, not a rule. You can adjust the last_changed
field before the tuple is stored that way. There's an example
in the manual's discussion of triggers.

regards, tom lane

Browse pgsql-sql by date

  From Date Subject
Next Message Grant Kaufmann 1999-10-22 16:05:37 Re: [SQL] Adding a rule to update a last_changed field
Previous Message Brook Milligan 1999-10-22 15:36:00 Re: [SQL] Adding a rule to update a last_changed field