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 1ijnI2-0001cc-AV for pgsql-general@arkaria.postgresql.org; Tue, 24 Dec 2019 16:44:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ijnI1-000261-3H for pgsql-general@arkaria.postgresql.org; Tue, 24 Dec 2019 16:44:09 +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 1ijnI0-00025p-KC for pgsql-general@lists.postgresql.org; Tue, 24 Dec 2019 16:44:08 +0000 Received: from mail-ot1-x343.google.com ([2607:f8b0:4864:20::343]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ijnHx-0005JK-OQ for pgsql-general@lists.postgresql.org; Tue, 24 Dec 2019 16:44:07 +0000 Received: by mail-ot1-x343.google.com with SMTP id a15so26923635otf.1 for ; Tue, 24 Dec 2019 08:44:05 -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=zrEJ3M7RPpgGOsILTz5KTJJbUSxMrlmiAXnh0btP4Sw=; b=RuofXLvcty5wWibNt35yQ4hGpJbQ537mdqSbhnuc3czK6P/Ny1Y1RVu4Y9kxKhDiKa x6qdG3KAgdetSZNPTgTdENYOLJuGUnuHBRu7PmVj/VEVj4qnkZ19lKDTVnKbpJlTdZZV mtGR7zgHiX5dz+IeZFBVOBSEduUTNpuOyneBk7XYLAVSXRAsaYUc8Ul2zX+/krkJREii 7ERiMCsw4IARYC6eHvm+/Hf72oad1KjgXzJmqfDwdpdEqO5Uul8SxDbwAVSDdw1S8mAE tb+K5HaOeSkz7nDWxMlM+B8DgjOy0f4er2C/HZSjyVwSaLGqbzWrzqCHKn6R9zN+GKcw jCHQ== 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=zrEJ3M7RPpgGOsILTz5KTJJbUSxMrlmiAXnh0btP4Sw=; b=uaDhhmERrgQSb2qqW3J5F3j0KQeCCb+7Fa47cGahwgraTcTeiyqFXQiZ2MRz9Cptqp myeeRGbF38UICYsSQV4L1XluTQJ8W+U/QnbKo9fSMwky/FEYgh7uqGsX83Ewa/1vIIdP bKA0k+ok0yriUVWG9DmsXUwdDSkdqfaOobd3G5fWnE2MhnsHncY8am7d+EOOwZQNHecm iRilZ8+H3vNwwLURQmq8TUnBFtqQfrfsSDSHnA0f8cZl76nte4ruUTLojgcxpg8Nq3Q/ JsG08Ht8lbiTX8Xm1N4WiSef5+WfWEbH4aTNpBEOnpyIidTosHPGB994u4ORnt23Sil5 VJdw== X-Gm-Message-State: APjAAAWC8lB/C7g9hcWVGAM9uvF+QDIq40GZP9Soi7Suk77lPk1FOhtz AaqBWIcW0X3onhi5SVheWclEfYyjK0Y= X-Google-Smtp-Source: APXvYqwOT/50uwlwTd9YpYqx6BLaG7zVX+AP4TfIctGNXECxW25uptRsYa3A3pni12oFaKRSm7wJ7w== X-Received: by 2002:a05:6830:4a7:: with SMTP id l7mr35840465otd.372.1577205844622; Tue, 24 Dec 2019 08:44:04 -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 j10sm3537076otr.64.2019.12.24.08.44.03 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Dec 2019 08:44:03 -0800 (PST) Subject: Re: Date created for tables To: pgsql-general@lists.postgresql.org References: <2FC3DA6F06B2814CA11FDEC9CEF5AAAC997D714E@CCPMAILDAG03.cantab.local> <20191224010153.GC24865@momjian.us> <2e6cf0d7-bed4-6bbb-95c8-e090697cdb8a@gmail.com> <3681289c-9446-71ff-2388-3c719c231185@aklaver.com> From: Ron Message-ID: Date: Tue, 24 Dec 2019 10:44:03 -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: <3681289c-9446-71ff-2388-3c719c231185@aklaver.com> Content-Type: multipart/alternative; boundary="------------9E701C8CFCEC760AEEB8CB72" 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. --------------9E701C8CFCEC760AEEB8CB72 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit On 12/24/19 10:39 AM, Adrian Klaver wrote: > On 12/23/19 6:14 PM, Ron wrote: >> On 12/23/19 7:01 PM, Bruce Momjian wrote: >>> On Thu, Dec  5, 2019 at 05:10:20PM +0000, Chloe Dives wrote: >>>> Having moved to PostgreSQL from Oracle a few years ago I have been >>>> generally >>>> very impressed by Postgres, but there are a few things that I still >>>> miss. One >>>> of those is being able to see the created and last modified dates for >>>> database >>>> objects. >>>> >>>> >>>> Is this something that has been considered for implementation? >>> I wrote a blog about this: >>> >>>     https://momjian.us/main/blogs/pgblog/2017.html#November_21_2017 >> >> You all are *grossly* over-complicating this. > > Not really. This discussion has come up before and it starts with the > simple case of timestamp the initial CREATE. This would suffice for some > folks. However, it then progresses into a request for full object audit > system. This is directly akin to Henry Ford refusing to build cars because people will *someday*** want computerized fuel injection, crumple zones and air bags. > I understand why there is no great desire to start down this path by the > developers, they know the pressure would be on to expand the code. As > Fabrízio mentions in another post this is something that could be covered > in an extension. FYI, I do it by using Sqitch for my schema object creation. > >> >> By creation time, "we DBAs" think the time we ran "CREATE object", not >> when pg_dump, pg_basebackup and pg_update ran. >> >> Likewise, modification time is when we last ran an ALTER command ran, not >> when VACUUM ran (that's tracked elsewhere) or DML ran. >> >> That's all. >> >> -- >> Angular momentum makes the world go 'round. > > -- Angular momentum makes the world go 'round. --------------9E701C8CFCEC760AEEB8CB72 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit On 12/24/19 10:39 AM, Adrian Klaver wrote:
On 12/23/19 6:14 PM, Ron wrote:
On 12/23/19 7:01 PM, Bruce Momjian wrote:
On Thu, Dec  5, 2019 at 05:10:20PM +0000, Chloe Dives wrote:
Having moved to PostgreSQL from Oracle a few years ago I have been generally
very impressed by Postgres, but there are a few things that I still miss. One
of those is being able to see the created and last modified dates for database
objects.

 
Is this something that has been considered for implementation?
I wrote a blog about this:

    https://momjian.us/main/blogs/pgblog/2017.html#November_21_2017

You all are *grossly* over-complicating this.

Not really. This discussion has come up before and it starts with the simple case of timestamp the initial CREATE. This would suffice for some folks. However, it then progresses into a request for full object audit system.

This is directly akin to Henry Ford refusing to build cars because people will someday want computerized fuel injection, crumple zones and air bags.

I understand why there is no great desire to start down this path by the developers, they know the pressure would be on to expand the code. As Fabrízio mentions in another post this is something that could be covered in an extension. FYI, I do it by using Sqitch for my schema object creation.


By creation time, "we DBAs" think the time we ran "CREATE object", not when pg_dump, pg_basebackup and pg_update ran.

Likewise, modification time is when we last ran an ALTER command ran, not when VACUUM ran (that's tracked elsewhere) or DML ran.

That's all.

-- 
Angular momentum makes the world go 'round.



--
Angular momentum makes the world go 'round.
--------------9E701C8CFCEC760AEEB8CB72--