Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ijwuD-0006AX-Hu for pgsql-general@arkaria.postgresql.org; Wed, 25 Dec 2019 03:00:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ijwuA-0002Hv-DG for pgsql-general@arkaria.postgresql.org; Wed, 25 Dec 2019 03:00:10 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ijwu9-0002Hn-U7 for pgsql-general@lists.postgresql.org; Wed, 25 Dec 2019 03:00:10 +0000 Received: from mail-pj1-x102c.google.com ([2607:f8b0:4864:20::102c]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ijwu3-0001Oy-B0 for pgsql-general@lists.postgresql.org; Wed, 25 Dec 2019 03:00:08 +0000 Received: by mail-pj1-x102c.google.com with SMTP id u63so1279403pjb.0 for ; Tue, 24 Dec 2019 19:00:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=content-transfer-encoding:from:mime-version:subject:date:message-id :references:cc:in-reply-to:to; bh=ZTPaJBuCJ0dOHI9XVzVLh3od7X2rPowZ82zD8FTFbRs=; b=kolPgTXkdJf6VInaKyhx/+m1rhiooO13vUv7NASfJp9OcQxrQbZaAe07aLoR81iOGX t0u5GMWq1p6jQY12BJhYvbFEIc4400nn3jOATX9Mfwb4iYW6+RTm/+i65bGKrCz1nPBa A/mxaJKqm0wdqB97vtPdYFvwF72ZehmUcpbkdYFtxHlcOaUYv0Y2mBLmCCgpyYxRJKu8 PiXc12VdhUwvm4rT/tkIrnB8b9iTjf0yTfjBAgEFhNGa4evcCHWYTXJdTnx9Y0thCDD2 lQCak3sjpjiRTLuS9flWMZ9vwoWeCaKuqeFK+UDesdCLB5F1YqQtX3DYp0OL7+gS6l5+ fHWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:content-transfer-encoding:from:mime-version :subject:date:message-id:references:cc:in-reply-to:to; bh=ZTPaJBuCJ0dOHI9XVzVLh3od7X2rPowZ82zD8FTFbRs=; b=kuv5ZpQ7UjVfDsiNZedDhF81gpgXp8Mm6LiYkpGNrAOGuaBZzxrmihXtJBZtjqVgDH KOC4Q0OpF7Q9t5puc8GgG9ra8UkNXVTax4fKQmZhAV58JK1jHjgu+O7q8i0r5wlhvxuV gcBlmbENFsxXFH9u/SfOkdJwjFY5+9mY2iPZj8sUFOsu5xTPXyEXutfe0SrGgzA/828t /nM5wyemJSNHVzUm1xAZbO5cXx6/DfLoPEuOtrZ37GwLCaM5C6HRyj9oC/lqAm15CqkR E+/Md/+h1VVwfGQWxaWa7CLfUnzWX3r51o+7P2NQ1R+n3HJeONUSxrH62ILhjjqT/D0D IfSg== X-Gm-Message-State: APjAAAVzkEJrg63LgOVoC88fy7hycon4vbbouV3hcM+uahRb1FxbfIDt tzeCpjjtFkFHfKEMe7+qa5sbWzugoi1Ylg== X-Google-Smtp-Source: APXvYqzAFv4eY1MUzGjNXodmfQwZKACyRDMyMVHDj7lDAWKwoLqefQbj7pC9deC1b7F73yj9oYWodg== X-Received: by 2002:a17:902:8a8d:: with SMTP id p13mr37156383plo.296.1577242801742; Tue, 24 Dec 2019 19:00:01 -0800 (PST) Received: from [192.168.1.80] (d23-16-92-185.bchsia.telus.net. [23.16.92.185]) by smtp.gmail.com with ESMTPSA id b98sm4933490pjc.16.2019.12.24.19.00.00 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 24 Dec 2019 19:00:01 -0800 (PST) Content-Type: multipart/alternative; boundary=Apple-Mail-A02100DC-56C6-410E-B896-AB80249BAEDD Content-Transfer-Encoding: 7bit From: Rob Sargent Mime-Version: 1.0 (1.0) Subject: Re: Date created for tables Date: Tue, 24 Dec 2019 18:58:55 -0800 Message-Id: References: <92b8607a-089b-f553-1808-e8385b8d0d27@gmail.com> Cc: pgsql-general@lists.postgresql.org In-Reply-To: <92b8607a-089b-f553-1808-e8385b8d0d27@gmail.com> To: Ron X-Mailer: iPhone Mail (17C54) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --Apple-Mail-A02100DC-56C6-410E-B896-AB80249BAEDD Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable > On Dec 24, 2019, at 11:48 AM, Ron wrote: >=20 > =EF=BB=BF On 12/24/19 1:14 PM, Rob Sargent wrote: >>=20 >>> If there's not enough time and motivation for the developers to implemen= t 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 limite= d resources, and won't go off and pout in the corner. >>>=20 >>> But that's not what y'all said. "It's too complicated, mission creep, b= lah blah blah" just extended way too long. >> Is there a list of purported uses cases for these two attributes (other t= han auditing)? Especially anything to do with managing the data as they cur= rently exist?=20 >=20 > I've used last_altered for comparing tables on Staging and Prod database. = =20 >=20 > If, for example, the last_altered on a prod table is earlier than last_alt= ered on the staging table, then that's a strong hint that the staging and pr= od schema are out of sync, and more detailed examination is required. =20 >=20 > 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 t= hat unauthorized modification to production that's breaking their applicatio= n. You then show them that the table hasn't been altered in X months, and p= oint the finger back at their incompetent developers. >=20 > All in all, it's not something that you use every day, but when it is usef= ul, it's very useful. >=20 > --=20 Don=E2=80=99t both of those examples hi-light flaws in the release procedure= s?=20 > Angular momentum the world go 'round. --Apple-Mail-A02100DC-56C6-410E-B896-AB80249BAEDD Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable


On Dec 24, 2019, at 11:48 AM, Ron <ronljoh= nsonjr@gmail.com> wrote:

=EF=BB=BF =20 =20 =20 On 12/24/19 1:14 PM, Rob Sargent wrote:
If there's not enough time an=
d motivation for the developers to implement CREATED_ON and LAST_ALTERED in p=
g_class, then you should have said that in the first place.  We're adults; w=
e understand that OSS projects have limited resources, and won't go off and p=
out in the corner.

But that's not what y'all said.  "It's too complicated, mission creep, blah b=
lah blah" just extended way too long.

        
Is there a list of purported us=
es cases for these two attributes (other than auditing)?  Especially anythin=
g 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.

--
Don=E2=80=99= t both of those examples hi-light flaws in the release procedures? 
Angular momentum the world go 'round.
=20
= --Apple-Mail-A02100DC-56C6-410E-B896-AB80249BAEDD--