Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qTvo3-00B9tk-0p for pgsql-bugs@arkaria.postgresql.org; Thu, 10 Aug 2023 02:53:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qTvo0-00ALXh-Df for pgsql-bugs@arkaria.postgresql.org; Thu, 10 Aug 2023 02:53:44 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qTvo0-00ALXZ-5N for pgsql-bugs@lists.postgresql.org; Thu, 10 Aug 2023 02:53:44 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qTvnt-001bPG-3n for pgsql-bugs@lists.postgresql.org; Thu, 10 Aug 2023 02:53:43 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 37A2rRbG026523; Wed, 9 Aug 2023 22:53:27 -0400 From: Tom Lane To: Bruce Momjian cc: msdnchina@163.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #18034: Accept the spelling "+infinity" in datetime input is not accurate In-reply-to: References: <18034-08e668401be826ed@postgresql.org> Comments: In-reply-to Bruce Momjian message dated "Wed, 09 Aug 2023 22:39:17 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <26521.1691636007.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Wed, 09 Aug 2023 22:53:27 -0400 Message-ID: <26522.1691636007@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Bruce Momjian writes: >> in the https://www.postgresql.org/docs/16/release-16.html, there is a new >> feature :Accept the spelling "+infinity" in datetime input。 >> Actually,"in datetime input " is not accurate. >> Actually, in the PostgreSQL 16 beta2 edition, the spelling "+infinity" can >> be used in the following three datatypes: >> 1.timestamp [ (p) ] [ without time zone ] >> 2.timestamp [ (p) ] with time zone >> 3.date >> >> and the spelling "+infinity" can not be used in the following two >> datatypes: >> 1.time [ (p) ] [ without time zone ] >> 2.time [ (p) ] with time zone > We call our timestamp type datetime in some cases, e.g.: > ... > I see it in a few other places. Should we rename it other places too? > I thought datetime was just a short-hand for our date-time types. I don't see much reason to change anything here. "Datetime" is not a perfectly strict classification, eg it might or might not include "interval" depending on context, and I don't want to try to make that exact. A more specific release note entry could be "Accept the spelling '+infinity' for datetime types that accept infinity"; but I'm not sure it's worth the extra verbiage. regards, tom lane