Re: Data in table changed?

From: Shridhar Daithankar <shridhar(at)frodo(dot)hserus(dot)net>
To: "Thomas Holmgren" <thm(at)regnecentralen(dot)dk>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: Data in table changed?
Date: 2004-03-02 14:28:40
Message-ID: 200403021958.40622.shridhar@frodo.hserus.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tuesday 02 March 2004 19:34, Thomas Holmgren wrote:
> Hi all,
>
> I have a large number of clients synchronizing with a central database.
> The clients update their local data by polling the database for changes
> at fixed intervals. I need an efficient way of determining if data in a
> table has been changed (either updated, deleted or inserted). Can this
> be achieved without scanning the tables using expensive SQL? (my tables
> are _big_!) Is there some way to get a "time for last update" for a
> specific table? Or something similar I can use?

If you are syncing your entire database, why don't you look at replication
solutions which would transfer WAL files and perform any required updates..

Check http://gborg.postgresql.org/project/pgreplication/projdisplay.php

HTH

Shridhar

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Karl O. Pinc 2004-03-02 14:39:21 Re: Data in table changed?
Previous Message scrappy 2004-03-02 14:25:06 stacy