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 1ijZi4-0003LK-PJ for pgsql-general@arkaria.postgresql.org; Tue, 24 Dec 2019 02:14:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ijZi3-0008HW-Kg for pgsql-general@arkaria.postgresql.org; Tue, 24 Dec 2019 02:14:07 +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 1ijZi3-0008HP-7T for pgsql-general@lists.postgresql.org; Tue, 24 Dec 2019 02:14:07 +0000 Received: from mail-ot1-x341.google.com ([2607:f8b0:4864:20::341]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ijZi0-00073Z-MB for pgsql-general@lists.postgresql.org; Tue, 24 Dec 2019 02:14:06 +0000 Received: by mail-ot1-x341.google.com with SMTP id k16so19876811otb.2 for ; Mon, 23 Dec 2019 18:14:04 -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=EywLdLDJ4aSsZ7hXNEpIvbasx+VBLcvV8O66ic2xPkA=; b=umgD1QgvWNzhTy14PQIOPGN4KUSB4gCbc0zpMeagb9GZf+aWx566EWAe3vcvYc/UXd D0NxS2D++xh1AEl8iEdD39D7W71dUTwDSRNv8l/Q+UTACvtUA1MbPUCOju+IlInAWoWy VVIFZ6rvPuPbE/i9NW36IyC8KQC5Y8SFd4BQazUiU3QqCY8CQXG7k3DLd5mP19hopAGM x00tmXxcAnwsAJmw4dkFSQXLFN+5SIAxxpwaTWRFrMGjfjG41X8ogFUHdDRdY4ZxT3Bw CmcpzkyUG1cZZdUQiGHI/yCRde2hL491PdDrGvIJdtr2pzMaqFWm/UH+IksdcvpTqpFZ mXmw== 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=EywLdLDJ4aSsZ7hXNEpIvbasx+VBLcvV8O66ic2xPkA=; b=ME105/XmsmFcRlZN2kO5je+ElRwDyErcSgsP9Ol7IBCztQ+x3Lc+1y29HKPkjsVw54 YpKNSTZhkwFXqRAdEu7lbm0DSrLtkDL3Ta17RpvmMkGaKQ2+Dpzwt2Fsg3sMUw1kJOZD rJtf5zAgGWinPYAYzATv07fzWv/6TPKQCsKPeSYIxALgb7pHb9WRIVL92bjn5bKI6I6f 2ddirM9/8ufXHKgTkgCJzeLkgekC9ltVdI7Mb5J9u4gIvBeeMReBXgmfmymlxnNlA8Na jAce/2+UBeie8Ox0ZOri8OAvPiVe/4ZPxP6FFR7srlMbyHsWMAtVZb+8AiCv2L1Ytrq8 SLCw== X-Gm-Message-State: APjAAAVcYdVsVnQqy03W0t0jjCiz85hgDdloKmaPHmwRXSM1u82aZXwS LRdlaS1JsSI45VAU7J7TfpNU2DTTZFQ= X-Google-Smtp-Source: APXvYqyyuS5Q0bZTiv432zaljfR1TlAoVv5IuKvxvnlKNA1x3GnAQ6MYH+LReS2hHIeUDqYTIfLybA== X-Received: by 2002:a9d:7ada:: with SMTP id m26mr37066797otn.111.1577153643591; Mon, 23 Dec 2019 18:14:03 -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 a136sm7089438oib.28.2019.12.23.18.14.02 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 23 Dec 2019 18:14:02 -0800 (PST) Subject: Re: Date created for tables To: pgsql-general@lists.postgresql.org References: <2FC3DA6F06B2814CA11FDEC9CEF5AAAC997D714E@CCPMAILDAG03.cantab.local> <20191224010153.GC24865@momjian.us> From: Ron Message-ID: <2e6cf0d7-bed4-6bbb-95c8-e090697cdb8a@gmail.com> Date: Mon, 23 Dec 2019 20:14:01 -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: <20191224010153.GC24865@momjian.us> Content-Type: multipart/alternative; boundary="------------8E54C8B1B3782C1F8D0CBD5B" 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. --------------8E54C8B1B3782C1F8D0CBD5B Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit 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. 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. --------------8E54C8B1B3782C1F8D0CBD5B Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit 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.

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.
--------------8E54C8B1B3782C1F8D0CBD5B--