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 1id2bu-0008K0-4Y for pgsql-general@arkaria.postgresql.org; Fri, 06 Dec 2019 01:40:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1id2bs-0007ov-51 for pgsql-general@arkaria.postgresql.org; Fri, 06 Dec 2019 01:40:44 +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 1id2br-0007on-NP for pgsql-general@lists.postgresql.org; Fri, 06 Dec 2019 01:40:43 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1id2bp-0000ws-BL for pgsql-general@lists.postgresql.org; Fri, 06 Dec 2019 01:40:42 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id A281C22915; Thu, 5 Dec 2019 20:40:40 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Thu, 05 Dec 2019 20:40:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=x2b6w6oQuYmRQjX9uayBHr3zim6 jkRiqeLj7KYthOo4=; b=LR1SgPTnyGPA7c4gDZ9U6EXhrZ6emULW60RFASAinK+ Xo2G09/aiFZzWsvIWBlYCrxx+HHKcBlihRNoqRPMtw2OHD9OJxWv9MrBKCcxhVFJ 8Di0wXM/9i8vHAi4S8GUgCvchY+cpf6pGdqAEIExICgPWTZbj2ksLjFHMwFcHKVw sf3dcCbeAd8Q1qS7nDix3ejYac4E/qr2OVg3x5KhIN+lpaxwlIx3hm0MkMb/p2HI A0hhFEMc83au7+GMgfXV5ST00gwzOh9iCz0O5zS8Jupc0i+PTzmVMyHHO6fqakh/ mOvFahn6WhLoEgGwM0u5RAgcdtDC5lSvRPT4yqx2sug== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=x2b6w6 oQuYmRQjX9uayBHr3zim6jkRiqeLj7KYthOo4=; b=tzWiVx2U5B9hEtUDQso9Ie SLN6O9HetYKguEdaUnAShsi7tBgAvv91VV9OMjnKXlK96GbGeeNK3q4OqrhSo8v2 PZaCXPNIgoDYpy/4jPXkSu3McrBMgv77Fjlp9J1BAsxw/w78WzAEIdebE7u+pL0P BFUOjG4h/2szkLy/R2xTzdebBf0JuXhmE6hKUlDbajxyDxQNikIji1iFJa6du0Vj AFS3lT0ZTU72y083/9AvJRiz4cEJWAHXbfY8gcNF7mJTAFSMtm9pjdxMG0zTSC7U HTa/FAnZKJyZ/U9Dt1M+FnM6OQZbVBhdsDqkVq+gqhJXpybNEAJ6wuIliTX1nRYw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrudekvddgtdejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucgfrhhlucfvnfffucdljedtmdenucfjughrpeffhf fvuffkfhggtggujgesghdtreertddtvdenucfhrhhomhepofhitghhrggvlhcurfgrqhhu ihgvrhcuoehmihgthhgrvghlsehprghquhhivghrrdighiiiqeenucfkphepudduuddrud dtvddrudektddrudekheenucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhes phgrqhhuihgvrhdrgiihiienucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from paquier.xyz (ee0822lan1.rev.em-net.ne.jp [111.102.180.185]) by mail.messagingengine.com (Postfix) with ESMTPA id 5E37E8005A; Thu, 5 Dec 2019 20:40:39 -0500 (EST) Date: Fri, 6 Dec 2019 10:40:36 +0900 From: Michael Paquier To: Ron Cc: pgsql-general@lists.postgresql.org Subject: Re: Date created for tables Message-ID: <20191206014036.GF121835@paquier.xyz> References: <2FC3DA6F06B2814CA11FDEC9CEF5AAAC997D714E@CCPMAILDAG03.cantab.local> <26505.1575572497@sss.pgh.pa.us> <476113e0-5c57-b56f-ba62-efbfe4839a72@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="uTRFFR9qmiCqR05s" Content-Disposition: inline In-Reply-To: <476113e0-5c57-b56f-ba62-efbfe4839a72@gmail.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --uTRFFR9qmiCqR05s Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Dec 05, 2019 at 07:12:22PM -0600, Ron wrote: > On 12/5/19 1:01 PM, Tom Lane wrote: >> It's been considered, and rejected, many times. Aside from the overhead >> involved, there are too many different ideas of what such dates ought to >> mean (e.g., what should happen during dump/restore? does a failed >> transaction update last-modified? etc etc). You can search the >> project's mailing list archives if you want to read the prior discussion= s. >=20 > All the other RDBMSs seem to have figured it out. It does not necessarily mean that Postgres has to do it. FWIW, you can track that using an even trigger for CREATE TABLE or other objects which inserts the following in a table of your choice for a given database: - The timestamp of the transaction. - The object name. - Its class ID, say pg_class::regclass for a table, etc. -- Michael --uTRFFR9qmiCqR05s Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAl3psZQACgkQnvQgOdby QH27WRAAnDJKF8qu2zN3DF0ouZqB+mcarzTT/aM8EG/fteDyZq7s48sJHf62CBtO fCLVxAY3Kfopd+wWG/SIb29+1sbqvY/JEdw2y9bpcK7Nt+eLY3hhMYrUDRhdbY3c VSt09TkZoJD0pnRwY2P1ySC+zSuXIQ4W/ZyB/0J/88SZFL5lIprm0R/hpPZBP1I/ u9NmZ98Nf04ECSaeX0tXZefJSP0EuDmlM++s2k8FuQ4WoiQnFLUb1Z8HncVUDxpp O60t7kby5Lp41PGGaLDKTh0L47ZZhhQQsw5sGKi5BSGPEdEtlLVh4CbhlI8xXt7B /BxZTlRm4DF7i7plI8/m/Q3kjRhHs/LGMz0CJ3nvFMYJIR3DmoLD0X8NQxUkeb9r jZK728gFcubmPcb6KP5x0tx0MKEMjAo9I7mgmFbaiaCUhvekk8g2kI79Vcaxv0UY cqAiKSlVuxjtuR+WykEogZu+ZpIFgk70pMxkgzMhY8iu4g8AVXt0SuhM/gKHZJsC HW/glEDXkda06fZJT9k1tJGlZEc+b/Dc5vYiVi50w6jQib7I5h39g2Nk9EBKnpVB OznceVEfTmfQwIuX9JZs67UnBDUSIzvGcRPS+675VCr9YhdDwDEqidg+4x2byklQ M+bLND5dbPL5wrZBPUuaSScXOchM/zEJzBHQHwGZ+dvIk89WHWo= =GFr9 -----END PGP SIGNATURE----- --uTRFFR9qmiCqR05s--