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 1sZBLz-00GwN6-TP for pgsql-bugs@arkaria.postgresql.org; Wed, 31 Jul 2024 15:35:03 +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 1sZBLx-009QaR-Vu for pgsql-bugs@arkaria.postgresql.org; Wed, 31 Jul 2024 15:35:01 +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 1sZBLx-009QVs-My for pgsql-bugs@lists.postgresql.org; Wed, 31 Jul 2024 15:35:01 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sZBLv-002OpO-AI for pgsql-bugs@lists.postgresql.org; Wed, 31 Jul 2024 15:35:00 +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 46VFYvGh3387162; Wed, 31 Jul 2024 11:34:57 -0400 From: Tom Lane To: Aleksander Alekseev cc: Chris BSomething , pgsql-bugs@lists.postgresql.org Subject: Re: Inconsistency of timezones in postgresql In-reply-to: References: Comments: In-reply-to Aleksander Alekseev message dated "Wed, 31 Jul 2024 16:23:20 +0300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3387160.1722440097.1@sss.pgh.pa.us> Date: Wed, 31 Jul 2024 11:34:57 -0400 Message-ID: <3387161.1722440097@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Aleksander Alekseev writes: > I don't see any mention of the standard. As I understand the > documentation merely says that timezone() corresponds to the AT TIME > ZONE SQL-syntax. Whether the syntax is standard or not is not clear. The syntax has been there since SQL92: 6.14 Function Specify a datetime value. Format ::= | | | ::= ::= [