Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WWSmI-00028t-P1 for pgsql-admin@arkaria.postgresql.org; Sat, 05 Apr 2014 15:45:06 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WWSmI-0006ff-8b for pgsql-admin@arkaria.postgresql.org; Sat, 05 Apr 2014 15:45:06 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WWSmG-0006fW-3F for pgsql-admin@postgresql.org; Sat, 05 Apr 2014 15:45:04 +0000 Received: from 88-190-26-230.rev.poneytelecom.eu ([88.190.26.230] helo=sd-30687.dedibox.fr) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WWSmC-0006Up-Od for pgsql-admin@postgresql.org; Sat, 05 Apr 2014 15:45:03 +0000 Received: from [192.168.0.17] (81-64-197-33.rev.numericable.fr [81.64.197.33]) by sd-30687.dedibox.fr (Postfix) with ESMTPSA id A637464071D; Sat, 5 Apr 2014 17:43:22 +0200 (CEST) Message-ID: <1396712697.2641.1.camel@localhost.localdomain> Subject: Re: How to find table creation time From: Guillaume Lelarge To: reiner peterke Cc: Nik Tek , "pgsql-admin@postgresql.org" Date: Sat, 05 Apr 2014 17:44:57 +0200 In-Reply-To: <14B72437-DECD-4311-B829-603364FAF3CE@drizzle.com> References: <14B72437-DECD-4311-B829-603364FAF3CE@drizzle.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4 (3.10.4-2.fc20) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: 0.5 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org On Sat, 2014-04-05 at 08:26 +0200, reiner peterke wrote: > Hi, > > Unfortunately not. This is a feature that is lacking in postgres. > > One could always look at the file node times, but this is unreliable too, as an operation like a vacuum full will create a new file node. > I haven't found a good way to work around this either. > I don't think it would be quite difficult to create an extension that uses a hook to record the timestamp when a user creates a table. Something like what was done around CREATE EXTENSION to allow adding some extensions but not all, according to a white list. -- Guillaume http://blog.guillaume.lelarge.info http://www.dalibo.com -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin