pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Date created for tables
Date: Tue, 24 Dec 2019 13:47:56 -0600
Message-ID: <92b8607a-089b-f553-1808-e8385b8d0d27@gmail.com> (raw)
In-Reply-To: <C23A2A0A-EA2B-4D00-9E36-7B7271CDCFC0@gmail.com>
References: <f70f367c-d0b6-6d6d-4e33-25739213e270@gmail.com>
	<C23A2A0A-EA2B-4D00-9E36-7B7271CDCFC0@gmail.com>

On 12/24/19 1:14 PM, Rob Sargent wrote:
>> If there's not enough time and motivation for the developers to implement CREATED_ON and LAST_ALTERED in pg_class, then you should have said that in the first place.  We're adults; we understand that OSS projects have limited resources, and won't go off and pout in the corner.
>>
>> But that's not what y'all said.  "It's too complicated, mission creep, blah blah blah" just extended way too long.
> Is there a list of purported uses cases for these two attributes (other than auditing)?  Especially anything to do with managing the data as they currently exist?

I've used last_altered for comparing tables on Staging and Prod database.

If, for example, the last_altered on a prod table is *earlier* than 
last_altered on the staging table, then that's a *strong hint* that the 
staging and prod schema are out of sync, and more detailed examination is 
required.

Another example is that -- since username is also recorded in other RDBMSs 
--it's useful when the customer is screaming at your boss asking who made 
that unauthorized modification to production that's breaking their 
application.  You then show them that the table hasn't been altered in X 
months, and point the finger back at their incompetent developers.

All in all, it's not something that you use every day, but when it *is* 
useful, it's *very* useful.

-- 
Angular momentum makes the world go 'round.

view thread (21+ messages)  latest in thread

Message-ID: <92b8607a-089b-f553-1808-e8385b8d0d27@gmail.com>
Permalink:  ../92b8607a-089b-f553-1808-e8385b8d0d27@gmail.com/
Also on:    postgresql.org/message-id/92b8607a-089b-f553-1808-e8385b8d0d27@gmail.com

 · 

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: ronljohnsonjr@gmail.com
  Subject: Re: Date created for tables
  In-Reply-To: <92b8607a-089b-f553-1808-e8385b8d0d27@gmail.com>
  References: <f70f367c-d0b6-6d6d-4e33-25739213e270@gmail.com> <C23A2A0A-EA2B-4D00-9E36-7B7271CDCFC0@gmail.com> <92b8607a-089b-f553-1808-e8385b8d0d27@gmail.com>

* 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