Re: How to find out that a record has been updated

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "P(dot)V(dot) Subramanian" <pvsmian(at)hotmail(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: How to find out that a record has been updated
Date: 2001-10-05 19:08:34
Message-ID: 20665.1002308914@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

"P.V. Subramanian" <pvsmian(at)hotmail(dot)com> writes:
> If some records have been updated or added, the app does some work, and
> marks the record as processed.

> Currently anyone updating a record is expected to mark it manually as
> needing processing. Otherwise the application doesn't know.

> Is there a better, more user friendly way, for the app to automatically find
> out which records have been updated.

You don't need to change the table definition; just add an ON UPDATE
trigger that forces the marking column to be updated.

regards, tom lane

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Josh Berkus 2001-10-05 20:26:58 Re: The mystery of concurrent access
Previous Message P.V. Subramanian 2001-10-05 18:59:13 Why has the trigger been launched