From: Guillaume Lelarge <guillaume@lelarge.info>
To: reiner peterke <zedaardv@drizzle.com>
Cc: Nik Tek <niktek2005@gmail.com>
Cc: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Re: How to find table creation time
Date: Sat, 05 Apr 2014 17:44:57 +0200
Message-ID: <1396712697.2641.1.camel@localhost.localdomain> (raw)
In-Reply-To: <14B72437-DECD-4311-B829-603364FAF3CE@drizzle.com>
References: <CAHySzWVNoyn803AOU3fU6yzjTa1bmQ28RED_+t3MKmCV7tgCSA@mail.gmail.com>
<14B72437-DECD-4311-B829-603364FAF3CE@drizzle.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>
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.infohttp://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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: guillaume@lelarge.info, zedaardv@drizzle.com, niktek2005@gmail.com
Subject: Re: How to find table creation time
In-Reply-To: <1396712697.2641.1.camel@localhost.localdomain>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox