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 1ijx4g-0006bM-Hc for pgsql-general@arkaria.postgresql.org; Wed, 25 Dec 2019 03:11:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ijx4e-0000p5-UP for pgsql-general@arkaria.postgresql.org; Wed, 25 Dec 2019 03:11:00 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ijx4e-0000oy-H5 for pgsql-general@lists.postgresql.org; Wed, 25 Dec 2019 03:11:00 +0000 Received: from mail-ot1-x330.google.com ([2607:f8b0:4864:20::330]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ijx4b-00055l-1G for pgsql-general@lists.postgresql.org; Wed, 25 Dec 2019 03:11:00 +0000 Received: by mail-ot1-x330.google.com with SMTP id b18so6279366otp.0 for ; Tue, 24 Dec 2019 19:10:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language; bh=h1XynRj0BH9Xm52IUf+X4KVWaM/a0TPCKKIaw2BSrpw=; b=eA0vvecYCtrSHmmeB1RawayvnhZa218c/I7towWTHKqpvFg2IFFoH863p4VjSZRrB2 DQ2v70pwgO00f9BfqERDL6M+/NMCdJONbPYvIJL3+ZfF6Y3yHRoFaSebm7IAw4cN3Xng EKJ22MN9lrtZ4VCwOjPSLFIqgOJrs/hOCxvuEqUi6nrCym6tjvOj29xUXrgr64mCKLcM m/Cd9wzKcuKdguGsYxurTw1QiKuR9KIauIpz25ThQH6dpZicc3HRoGFP8OVPGuxsZfuS bSkZmb1F5Z9VrkKsXW7iKa33gwj4Bj2Con9SjCZQheP15kMw4kcdgo7R511DPT2EbIfr hngg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=h1XynRj0BH9Xm52IUf+X4KVWaM/a0TPCKKIaw2BSrpw=; b=t2rkKUI9MY16hcyvptnxN5vjOSkllR6HMOcNyFahChjAkN7VXsq8n/OonBwA5AtH+x YibSNhN25PuZlEAbaWAu98ksJpvjmXlUqyQI11uwdUAAO0iYKB64R1gQpNvbm2Uzl2n7 cglQej2cScOj6lIkWYEkOesddg+J+AW6tWdripZIGlSRvk6cMyMmijqZ/TYvu4eez/Yz O6ZtuphlWb5uFi5ZSvMq0Fm9/7k9EnQYK32ECfyH0rNThSuorIPyQr3SSTKRHGZdNA8S oun0AHbNL8yUiHcYVdn2wwbzZaIDnfgTlejl4vb2I1bl2guCMBxPVrKYGBtPerbO0uKt gudQ== X-Gm-Message-State: APjAAAWLDQ9Ybfn0xAgGYKFGQ6QvE03oSU59g7gP9KCnFpF7u6xzakDw G+TtG+jCB2qV7vEXR96z/35z1e3yDyw= X-Google-Smtp-Source: APXvYqwFUIJdvOQNyASB9llsjVCoURFO510AyhZGdKvPGhvQ7vqh8Uu78KCcEZQl48YI8v7+HySKKw== X-Received: by 2002:a9d:10b:: with SMTP id 11mr35873193otu.222.1577243454595; Tue, 24 Dec 2019 19:10:54 -0800 (PST) Received: from [192.168.1.10] (ip70-186-126-197.no.no.cox.net. [70.186.126.197]) by smtp.googlemail.com with ESMTPSA id t203sm8226245oig.39.2019.12.24.19.10.53 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Dec 2019 19:10:53 -0800 (PST) Subject: Re: Date created for tables To: pgsql-general@lists.postgresql.org References: <92b8607a-089b-f553-1808-e8385b8d0d27@gmail.com> From: Ron Message-ID: <2cb8cdb6-23f8-e70b-0edd-aa94913889ce@gmail.com> Date: Tue, 24 Dec 2019 21:10:52 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------70F02066596824C6AB1F47F8" Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------70F02066596824C6AB1F47F8 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit On 12/24/19 8:58 PM, Rob Sargent wrote: > >> On Dec 24, 2019, at 11:48 AM, Ron wrote: >> >>  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. >> > Don’t both of those examples hi-light flaws in the release procedures? And bug highlight flaws in the development process.  We're human, after all. -- Angular momentum makes the world go 'round. --------------70F02066596824C6AB1F47F8 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit On 12/24/19 8:58 PM, Rob Sargent wrote:

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

 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.

Don’t both of those examples hi-light flaws in the release procedures?

And bug highlight flaws in the development process.  We're human, after all.

--
Angular momentum makes the world go 'round.
--------------70F02066596824C6AB1F47F8--