the best way to catch table modification

From: Marek Lewczuk <newsy(at)lewczuk(dot)com>
To: Lista dyskusyjna pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: the best way to catch table modification
Date: 2005-10-25 17:26:51
Message-ID: 435E6ADB.5000008@lewczuk.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello,
I'm implementing db-queries caching system - for this I need to know
each table's modification time (or at least modification counter). I
know that I can make a statement-level trigger, which will update a
table with tables modification times - however this is inefficient if
many inserts or updates are made on single table (in single
transaction). The best would be some kind of transaction-level trigger,
but this is not available. Are there any other, better options ?

Thanks in advance.
ML

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2005-10-25 17:37:39 Re: STL problem in stored procedures
Previous Message Richard Huxton 2005-10-25 17:11:49 Re: Deleting vs foreign keys