From: Bruce Momjian <bruce@momjian.us>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: davecramer@postgres.rocks
Cc: pgsql-docs@lists.postgresql.org
Subject: Re: Incorrect/confusing information about timetz
Date: Tue, 26 Sep 2023 19:24:22 -0400
Message-ID: <ZRNoJps0Zsd3KwsB@momjian.us> (raw)
In-Reply-To: <ZPo6C2s9PDAwfKeS@momjian.us>
References: <168451942371.714.9173574930845904336@wrigleys.postgresql.org>
<ZPozoUwxa80aarQp@momjian.us>
<1757505.1694119308@sss.pgh.pa.us>
<ZPo6C2s9PDAwfKeS@momjian.us>
On Thu, Sep 7, 2023 at 05:00:59PM -0400, Bruce Momjian wrote:
> On Thu, Sep 7, 2023 at 04:41:48PM -0400, Tom Lane wrote:
> > Bruce Momjian <bruce@momjian.us> writes:
> > > Uh, yes to the storage part, no to the output part. ;-) Postgres does
> > > store the timetz time zone offset, but it doesn't adust it once it is
> > > stored so doesn't adjust for the session time zone:
> >
> > Right, it just stores a numeric UTC offset.
> >
> > > Do we want to document this?
> >
> > Section 8.5.1.2. Times already says "The appropriate time zone offset
> > is recorded in the time with time zone value." Maybe that could be
> > made a little more precise, say "The resolved numeric offset from UTC
> > is recorded in the time with time zone value."
>
> Yeah, there is no mention of it odd output behavior. Here is a patch to
> add that.
Patch applied back to Postgres 11.
--
Bruce Momjian <bruce@momjian.us> https://momjian.us
EDB https://enterprisedb.com
Only you can decide what is important to you.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-docs@postgresql.org
Cc: bruce@momjian.us, tgl@sss.pgh.pa.us, davecramer@postgres.rocks, pgsql-docs@lists.postgresql.org
Subject: Re: Incorrect/confusing information about timetz
In-Reply-To: <ZRNoJps0Zsd3KwsB@momjian.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox