Re: Last modification time of a database? - Mailing list pgsql-general

From Craig Ringer
Subject Re: Last modification time of a database?
Date
Msg-id 49C8228F.8090501@postnewspapers.com.au
Whole thread Raw
In response to Last modification time of a database?  (Erik Jones <ejones@engineyard.com>)
Responses Re: Last modification time of a database?
List pgsql-general
Erik Jones wrote:

> Am I missing something obvious here?  If not, has anyone come up with a
> reliable way to do this?

Triggers on all your tables that append to a logging table?

Have the client do it?

Note that you do *NOT* want to have triggers that attempt to UPDATE a
table to record the last modified time for that table. They'll cause
transactions that touch the same table to block waiting until the first
one commits/rolls back, so they'll ruin your concurrency. They may also
cause unexpected deadlock aborts of transactions.

--
Craig Ringer



pgsql-general by date:

Previous
From: Craig Ringer
Date:
Subject: Re: text column constraint, newbie question
Next
From: Madison Kelly
Date:
Subject: Re: Determining/Setting a server's time zone