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 1sZB3S-00GuWf-1c for pgsql-bugs@arkaria.postgresql.org; Wed, 31 Jul 2024 15:15:53 +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 1sZB3Q-008wsA-F1 for pgsql-bugs@arkaria.postgresql.org; Wed, 31 Jul 2024 15:15:52 +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 1sZB3Q-008wre-6k for pgsql-bugs@lists.postgresql.org; Wed, 31 Jul 2024 15:15:52 +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 1sZB3N-002Oez-L3 for pgsql-bugs@lists.postgresql.org; Wed, 31 Jul 2024 15:15:50 +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 46VFFm9E3384711; Wed, 31 Jul 2024 11:15:48 -0400 From: Tom Lane To: Aleksander Alekseev cc: pgsql-bugs@lists.postgresql.org, Chris BSomething Subject: Re: Inconsistency of timezones in postgresql In-reply-to: References: Comments: In-reply-to Aleksander Alekseev message dated "Wed, 31 Jul 2024 17:51:12 +0300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3384709.1722438948.1@sss.pgh.pa.us> Date: Wed, 31 Jul 2024 11:15:48 -0400 Message-ID: <3384710.1722438948@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Aleksander Alekseev writes: > Alternatively we could provide timezone_iso(text, timestamp[tz]) > functions that just replace all the +'s to -'s and vice versa in its > first argument and then calls timezone(). That will add confusion, not reduce it. > Thoughts? I think this is a documentation issue, specifically that Section 8.5.3 is not sufficiently in-your-face about "UTC+2" not meaning what you probably think. We didn't really do anybody any favors by shoving those details off to Appendix B. regards, tom lane