On Fri, Jul 30, 1999 at 04:10:40PM -0400, Tom Lane wrote:
Tom -
How about timestamps?
> something like this:
> BEGIN TRANSACTION;
> INSERT and/or UPDATE, setting each new or modified row's updatedTime to 'now';
> NOTIFY shared_table;
> END TRANSACTION;
>
> All clients are listeners for the NOTIFY messages, and whenever
> a notify is received, a client will do
> SELECT * FROM shared_tableWHERE updateTime >= last_time_looked;
>
> Alternatively, is there a better way to design the table structure for
> this application? I would think "give me all recently modified tuples"
> is a pretty standard problem.
>
Ross
--
Ross J. Reedstrom, Ph.D., <reedstrm@rice.edu>
NSBRI Research Scientist/Programmer
Computer and Information Technology Institute
Rice University, 6100 S. Main St., Houston, TX 77005