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 1qXRn9-006Ikw-Pl for pgsql-bugs@arkaria.postgresql.org; Sat, 19 Aug 2023 19:39:23 +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 1qXRn7-0023xC-Tl for pgsql-bugs@arkaria.postgresql.org; Sat, 19 Aug 2023 19:39:22 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qXRn7-0023vk-K8 for pgsql-bugs@lists.postgresql.org; Sat, 19 Aug 2023 19:39:21 +0000 Received: from relay4-d.mail.gandi.net ([217.70.183.196]) by makus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qXRn4-0011tX-DT for pgsql-bugs@lists.postgresql.org; Sat, 19 Aug 2023 19:39:20 +0000 Received: by mail.gandi.net (Postfix) with ESMTPSA id 468E1E0002; Sat, 19 Aug 2023 19:39:12 +0000 (UTC) Message-ID: <63bed955-3353-5b1d-4855-2152c3cdf01e@postgresfriends.org> Date: Sat, 19 Aug 2023 21:39:12 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: BUG #18034: Accept the spelling "+infinity" in datetime input is not accurate Content-Language: en-US To: yanliang lei , Bruce Momjian Cc: Tom Lane , pgsql-bugs@lists.postgresql.org References: <18034-08e668401be826ed@postgresql.org> <26522.1691636007@sss.pgh.pa.us> <3f714db4.6b78.18a08efa2fd.Coremail.msdnchina@163.com> From: Vik Fearing In-Reply-To: <3f714db4.6b78.18a08efa2fd.Coremail.msdnchina@163.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-GND-Sasl: vik@postgresfriends.org List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 8/18/23 15:57, yanliang lei wrote: > Dear everyone, > I raise this question based on the following considerations: > 1. Make PostgreSQL easier for beginners to learn; > 2. PostgreSQL is a database software product rather than a database software project. A product means being more user-friendly, precise, and reducing the likelihood of misunderstandings。 > > > The datetime type may make beginners think that there is a datetime data type in the PostgreSQL database. Although senior PostgreSQL professionals know that there is no datetime data type, the datetime type is enough to make beginners misunderstand. > However, When they saw that the ReleaseNote in PostgreSQL 16 recorded "Accept the spelling"+infinity "in datetime type input", > the term 'datetime type' is sufficient for beginners to misunderstand , unless it is noted that 'datetime type' is a general term, representing the following PostgreSQL data types: timestamp [(p)] [without time zone], timestamp [(p)] with time zone, date。 > > > I am not nitpicking ,I hope that: PostgreSQL database software products can become more perfect and accurate。 > Thanks a lot! On the other hand, the standard talks about datetime types as a collection of dates, times, timestamps, and intervals; and there is no type called "datetime" in the standard. We are just doing the same thing here. -- Vik Fearing