| From: | Guyren Howe <guyren(at)gmail(dot)com> |
|---|---|
| To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
| Cc: | "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>, Postgres General <pgsql-general(at)postgresql(dot)org>, Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at> |
| Subject: | Re: Content for talk on Postgres Type System at PostgresConf |
| Date: | 2024-02-29 23:07:29 |
| Message-ID: | 201DD701-98E4-4349-9CF3-DBBF80700992@gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
On 29 Feb 2024, at 14:51, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>
>>> - time with time zone *does* store the time zone, but this isn’t
>>> actually useful and should be avoided (I’m not entirely sure why and the
>>> docs only gesture at the problems without stating them, IIRC)
>
>> No it doesn't store the time zone. Nor do the docs say they do. And
>> clearly point out the issue that evaluating a time zone without both date
>> and time inputs is basically pointless.
>
> timetz *does* store a time zone, in the sense of storing a numeric
> offset from UTC (i.e., "so many minutes east or west of Greenwich").
> The problem is that in most real-world applications your notion of
> "time zone" probably includes annual DST changes, which timetz can't
> represent. I don't say the type is completely useless, but its
> usefulness is a lot less than you might guess.
The closest I can come to this in the docs is:
"The appropriate time zone offset is recorded in the time with time zone value and is output as stored; it is not adjusted to the active time zone.”
I expect to be submitting some documentation updates as part of this project, fwiw.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Paul Jungwirth | 2024-02-29 23:22:27 | Re: Content for talk on Postgres Type System at PostgresConf |
| Previous Message | Tom Lane | 2024-02-29 22:51:11 | Re: Content for talk on Postgres Type System at PostgresConf |