pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: Ron <ronljohnsonjr@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Date created for tables
Date: Fri, 6 Dec 2019 10:40:36 +0900
Message-ID: <20191206014036.GF121835@paquier.xyz> (raw)
In-Reply-To: <476113e0-5c57-b56f-ba62-efbfe4839a72@gmail.com>
References: <2FC3DA6F06B2814CA11FDEC9CEF5AAAC997D714E@CCPMAILDAG03.cantab.local>
	<26505.1575572497@sss.pgh.pa.us>
	<476113e0-5c57-b56f-ba62-efbfe4839a72@gmail.com>

On Thu, Dec 05, 2019 at 07:12:22PM -0600, Ron wrote:
> On 12/5/19 1:01 PM, Tom Lane wrote:
>> It's been considered, and rejected, many times.  Aside from the overhead
>> involved, there are too many different ideas of what such dates ought to
>> mean (e.g., what should happen during dump/restore? does a failed
>> transaction update last-modified? etc etc).  You can search the
>> project's mailing list archives if you want to read the prior discussions.
> 
> All the other RDBMSs seem to have figured it out.

It does not necessarily mean that Postgres has to do it.  FWIW, you
can track that using an even trigger for CREATE TABLE or other objects
which inserts the following in a table of your choice for a given
database:
- The timestamp of the transaction.
- The object name.
- Its class ID, say pg_class::regclass for a table, etc.
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

view thread (21+ messages)  latest in thread

Message-ID: <20191206014036.GF121835@paquier.xyz>
Permalink:  ../20191206014036.GF121835@paquier.xyz/
Also on:    postgresql.org/message-id/20191206014036.GF121835@paquier.xyz

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: michael@paquier.xyz, ronljohnsonjr@gmail.com
  Subject: Re: Date created for tables
  In-Reply-To: <20191206014036.GF121835@paquier.xyz>
  References: <2FC3DA6F06B2814CA11FDEC9CEF5AAAC997D714E@CCPMAILDAG03.cantab.local> <26505.1575572497@sss.pgh.pa.us> <476113e0-5c57-b56f-ba62-efbfe4839a72@gmail.com> <20191206014036.GF121835@paquier.xyz>

* 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