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 1s7xvC-008doU-Ru for pgsql-bugs@arkaria.postgresql.org; Fri, 17 May 2024 13:46:56 +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 1s7xvC-00DuCf-Jt for pgsql-bugs@arkaria.postgresql.org; Fri, 17 May 2024 13:46:54 +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 1s7xvC-00DuBq-7G for pgsql-bugs@lists.postgresql.org; Fri, 17 May 2024 13:46:54 +0000 Received: from wfhigh4-smtp.messagingengine.com ([64.147.123.155]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1s7xv7-000iWn-Nm for pgsql-bugs@lists.postgresql.org; Fri, 17 May 2024 13:46:53 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailfhigh.west.internal (Postfix) with ESMTP id 6B09F18000EF; Fri, 17 May 2024 09:46:48 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Fri, 17 May 2024 09:46:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:reply-to :subject:subject:to:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; t=1715953608; x=1716040008; bh=O o/2TDE4ejXVve/wAVY/sSMTkt65skLbBEtjp5jufgY=; b=aUCPtya2WwLGsi1rv H/jBy5VFNz09X9sdiP98RdEiJhtPqvvrsKwBp+v3V2nP9lJtK9f1RNbJBSsJFKqp vvYoMkmM7EdbGDj0ggpD8cc1V6ie41+b0a3gjTbuQY1dyDU/3b7+ujyMeyfIuoRq oqYcqlXCgf2QzA9zj5ed+4WU21J8pRz32yR8uG9FMz2h6K1W1isro9cfdCTzfzm3 RpPE+pcHuUHdb2XTx7H9a5QH0MJ0xjTEjRb4mNQAp39G8tZKX/VUfm7PIAXruSf7 nXrqp0P63O08xDwc+Lkrl2t2LeK6PgqyR1p8DmnvG0fZvJsYkKBH2wurOobBlJfu b9byw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdehfedguddvtdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepfffhvffukfggtggugfgjsehtke ertddttdejnecuhfhrohhmpeetlhhvrghrohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhr vgesrghlvhhhrdhnohdqihhprdhorhhgqeenucggtffrrghtthgvrhhnpedvffeljeektd dtvddvgeeuhfelleejfeejgeefuedufeeugfegfeekgffhkeejgfenucffohhmrghinhep phhoshhtghhrvghsqhhlrdhorhhgpdifihhkihhpvgguihgrrdhorhhgpdgvnhhtvghrph hrihhsvggusgdrtghomhdpghhnuhdrohhrghenucevlhhushhtvghrufhiiigvpedtnecu rfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprd horhhg X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 17 May 2024 09:46:47 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1715953605; bh=+gvKIR5FAhLEXprHZyEcml5wowdPGAhnQM1FdpKh8v0=; h=Date:From:To:Subject:In-Reply-To:From; b=kAIgCcdrP+sN/jUeAG2hhris/TjRk78A5AXtDU61Ps9Pbtrx3gmyFHA3OQqiRW1vc eIVSNvpP6PHrvTP+VpXn7jDOOhZ9HvL2S6D6bLdU5qGt9LriLfEjPB5obzlh7UL1BB sZ5MjlVr6QzBRepPdXG4xc1LMlVGaQ4d5bqLbjsQ6hehit/mjtqYLOiZHYE8a/8Qb+ JHVjD33GKEGdCL5uYhLogGqkmtLA2RvRWa7svb7yTaybVsTQyHCcr2SEe8kKoKcNjB Nmd06ucJqLKnDhGKHRoMGnFr/LuphHIJa+ddz3sPHa/6bZb83hVjdxcnRytNrWHPzl aSyM5O5c6aYcA== Received: by schmee.alvh.no-ip.org (Postfix, from userid 1000) id 71232A2; Fri, 17 May 2024 15:46:45 +0200 (CEST) Date: Fri, 17 May 2024 15:46:45 +0200 From: Alvaro Herrera To: david.perez.ingeniero@gmail.com, pgsql-bugs@lists.postgresql.org, Tom Lane Subject: Re: BUG #18470: Time literal accepted in Postgres 15 and below, not accepted in Postgres 16 Message-ID: <202405171346.virffgus6cjg@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <18470-34fad4c829106848@postgresql.org> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2024-May-17, PG Bug reporting form wrote: > I've read carefully this documentation: > https://www.postgresql.org/docs/current/datatype-datetime.html > > It states that: > > ISO 8601 specifies the use of uppercase letter T to separate the date and > time. PostgreSQL accepts that format on input, but on output it uses a space > rather than T, as shown above. This is for readability and for consistency > with RFC 3339 as well as some other database systems Hmm, at least the Wikipedia page claims that the leading T should be accepted. https://en.wikipedia.org/wiki/ISO_8601#Times > postgres=# select 'T14:00:00'::time; > ERROR: invalid input syntax for type time: "T14:00:00" This changed with commit 5b3c5953553b, "Tighten error checks in datetime input, and remove bogus "ISO" format." https://git.postgresql.org/cgit/postgresql.git/commit/?id=5b3c5953553bb9fb0b171abc6041e7c7e9ca5b4d There's no test case modified in this commit that specified only a time with no date, so assume this particular change was unintentional. -- Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/ "Most hackers will be perfectly comfortable conceptualizing users as entropy sources, so let's move on." (Nathaniel Smith) https://mail.gnu.org/archive/html/monotone-devel/2007-01/msg00080.html