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.96) (envelope-from ) id 1wFebg-005P6L-2i for pgsql-docs@arkaria.postgresql.org; Wed, 22 Apr 2026 20:55:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wFebg-00FL1b-02 for pgsql-docs@arkaria.postgresql.org; Wed, 22 Apr 2026 20:55:36 +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.96) (envelope-from ) id 1wFVx5-00DVpo-1V for pgsql-docs@lists.postgresql.org; Wed, 22 Apr 2026 11:41:07 +0000 Received: from mahout.postgresql.org ([2001:4800:3e1:1::227]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wFVx3-00000002FGO-1rA0 for pgsql-docs@lists.postgresql.org; Wed, 22 Apr 2026 11:41:06 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=postgresql.org; s=20171124; h=Message-ID:Date:Reply-To:Cc:From:To:Subject: Content-Transfer-Encoding:MIME-Version:Content-Type:Sender:Content-ID: Content-Description:In-Reply-To:References; bh=eVyJ3lmSdH1b2vKaDChnfsc5/E+78+Yqt6oMoyGOEis=; b=KyVbK5bpUrWBBSJWuk14net3Fs 2dB5jTC62hkst30TUzVoD4+iGtC7qtGNeLmv5Rstt0ShqZ5fG+b7XuxO+v0/sP2+0tc+5HePYBwC3 t0nmai7CAOhHEPjJGFDk6TS4TYXC7BMWNbVuuaEucRmgN6YqSuf8QEkbta0akV8v0HP5hWmY4nSHA bHks0kbvTg0CuRjA/sLGlHjShPNE06uqTimnkZK07vtbBVX0KS2y4Ph2foJ6hMereQFt1+ApZSFB/ nnZsiSzLmIfrWxJGuE6jO0iH8lgmU66OcaywE4E06msOZQkcN2wTJNnuZvrpkFwCUpHCCVcMGbONv QTYe1HNA==; Received: from wrigleys.postgresql.org ([2a02:16a8:dc51::60]) by mahout.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wFVx2-006j7c-19 for pgsql-docs@lists.postgresql.org; Wed, 22 Apr 2026 11:41:05 +0000 Received: from localhost ([127.0.0.1] helo=wrigleys.postgresql.org) by wrigleys.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wFVx0-00EuAm-2r for pgsql-docs@lists.postgresql.org; Wed, 22 Apr 2026 11:41:03 +0000 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: Please clarify that Timestamp with Timezone doesn't preserve the timezone. To: pgsql-docs@lists.postgresql.org From: PG Doc comments form Cc: github@richardneill.org Reply-To: github@richardneill.org, pgsql-docs@lists.postgresql.org Date: Wed, 22 Apr 2026 11:40:49 +0000 Message-ID: <177685804902.403059.7237129094698721575@wrigleys.postgresql.org> X-Auto-Response-Suppress: All Auto-Submitted: auto-generated List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk The following documentation comment has been logged on the website: Page: https://www.postgresql.org/docs/18/datatype-datetime.html Description: Hi, Just a small bit of feedback on this page: https://www.postgresql.org/docs/current/datatype-datetime.html There is a gotcha for the unwary, in that it does not preserve the original timezone after the data is recorded. The user needs to understand that timestamp with timezone is performing implicit conversion for them, but it does not save the TZ value. One might, naively, expect it to do the "obvious" thing, storing the original timezone alongside the timestamp, and therefore allow you to query the data and discover what the timezone was when the data was input. (i.e. the on-disk representation of "17th May at 4pm New York" should be different from "17th May at 1pm in Los Angeles", and that a query should be able to do something like not just the UTC value in the local timezone, but also the fact that this date was recorded from the perspective of a New Yorker). Or in other words, one might expect that: SELECT EXTRACT (timezone FROM '2026-04-16 13:00:00+09'::timestamptz); should be able to tell me the "+09", regardless of my own local time. May I suggest adding a "Caution" to draw greater attention to this fact, and recommending an alternative if there is one. Thanks - Richard