Last insert/update/delete time for a table

From: Aleksander Kmetec - INTERA <aleksander(dot)kmetec(at)intera(dot)si>
To: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Last insert/update/delete time for a table
Date: 2008-04-25 12:14:17
Message-ID: 4811CB19.9090500@intera.si
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi all,

I'm in the process of writing a backup script which only dumps those tables which were changed in the last 24 hours. We
have hundreds of tables (one per user), but most of them don't get changed very often, so there's no point in dumping
them every night.

Is there a way to get the time of the last insert, update or delete statement for a specific table?

Regards,
Aleksander

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Roberts, Jon 2008-04-25 12:47:06 pg_version is missing
Previous Message Tino Wildenhain 2008-04-25 12:11:13 Re: How to modify ENUM datatypes?