Received: from localhost (unknown [200.46.204.183]) by developer.postgresql.org (Postfix) with ESMTP id EF7F32E00ED for ; Mon, 26 May 2008 18:26:59 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 88454-01-9 for ; Mon, 26 May 2008 18:26:47 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from roadrunner.wars-nicht.de (roadrunner.wars-nicht.de [88.198.26.233]) by developer.postgresql.org (Postfix) with ESMTP id 2BBC52E00FD for ; Mon, 26 May 2008 18:25:38 -0300 (ADT) Received: from iridium.wars-nicht.de (Qe5a8.q.pppool.de [89.53.229.168]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by roadrunner.wars-nicht.de (Postfix) with ESMTP id A26819D41A1 for ; Mon, 26 May 2008 23:25:36 +0200 (CEST) Received: from iridium.wars-nicht.de (iridium.wars-nicht.de [127.0.0.1]) by iridium.wars-nicht.de (Postfix) with ESMTP id 26EFB3DD042 for ; Mon, 26 May 2008 23:25:57 +0200 (CEST) Date: Mon, 26 May 2008 23:25:56 +0200 From: Andreas 'ads' Scherbaum To: pgsql-admin@postgresql.org Subject: Re: table creation/modification datestamp Message-ID: <20080526232556.6ef551d9@iridium.wars-nicht.de> In-Reply-To: <20080526203958.GT21327@commandprompt.com> References: <483AFEFD.2000504@refractions.net> <20080526203958.GT21327@commandprompt.com> X-Mailer: Claws Mail 2.10.0 (GTK+ 2.12.0; i486-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200805/224 X-Sequence-Number: 29308 On Mon, 26 May 2008 16:39:58 -0400 Andrew Sullivan wrote: > On Mon, May 26, 2008 at 11:18:37AM -0700, Kevin Neufeld wrote: > > As a DBA, it would be extremely useful to know when tables have been > > created or modified. PostgreSQL doesn't keep track of this, does it? > > Nope. There's a project in pgfoundry, IIRC, to do it with triggers. > You could also use Slony (or any of its work-similar friends) to do > something similar. Maybe you mean: http://pgfoundry.org/projects/tablelog/ But that covers only data changes. There's no way to track DDL changes. Kind regards -- Andreas 'ads' Scherbaum German PostgreSQL User Group