Re: table change

From: Jeff Davis <pgsql(at)j-davis(dot)com>
To: Darren Bird <darrenlbird(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: table change
Date: 2007-05-11 18:56:41
Message-ID: 1178909801.24902.84.camel@dogma.v10.wvs
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, 2007-05-09 at 14:20 +0100, Darren Bird wrote:
> Is there a way of asking Postgresql if a particular table was changed
> without going back through the logs - like a last modified flag or
> even just a changed flag?

If the table change caused a rewrite of the table it will have a new
relfilenode (and a new file in the data directory).

You might look at that file's creation time. This will not catch all
modifications to the table.

Hope that helps,
Jeff Davis

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Alvaro Herrera 2007-05-11 19:01:56 Re: UTF-8 to ASCII
Previous Message Geoffrey 2007-05-11 18:55:53 Re: Fault Tolerant Postgresql (two machines, two postmasters, one disk array)