From: | Álvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org> |
---|---|
To: | Robert Treat <rob(at)xzilla(dot)net> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>, bristleconeweb(at)gmail(dot)com, pgsql-docs(at)lists(dot)postgresql(dot)org |
Subject: | Re: timestamp with time zone ~> GMT |
Date: | 2025-02-03 16:21:41 |
Message-ID: | 202502031621.j4h5q2bp3orj@alvherre.pgsql |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-docs |
On 2025-Feb-03, Robert Treat wrote:
> This does seem to come up often enough that it probably is worth being
> a bit more explicit about how this works; attached patch attempts
> that.
LGTM.
> Note, I dropped the bit about GMT; that change was made ~40 years ago,
> and I suspect it is close to noise for many people these days, though
> it could be added back if folks feel strongly about it.
I don't feel strongly about it, but another option might be to add a
<footnote> so that it is still there but less intrusive. Grepping for
GMT in the postgres repo there are still over 1400 matches of all kinds.
> As Tom notes above, what to store is debatable, and generally seems to
> conflate storage and display desires together, which makes it hard to
> imagine a generic enough implementation to put into core, but there
> are some attempts to solve this problem floating around in extension
> land. See https://github.com/mweber26/timestampandtz/blob/master/README.md
> as one such attempt.
Another simple option is to store a timezone name in a separate column,
which you can then use in the AT TIME ZONE clause. This is of course
more wasteful than storing a 2-byte zone identifier as the
timestampandtz extension does.
--
Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/
Voy a acabar con todos los humanos / con los humanos yo acabaré
voy a acabar con todos (bis) / con todos los humanos acabaré ¡acabaré! (Bender)
From | Date | Subject | |
---|---|---|---|
Next Message | Jonathan Stanley | 2025-02-03 16:50:57 | Re: timestamp with time zone ~> GMT |
Previous Message | Robert Treat | 2025-02-03 15:59:29 | Re: timestamp with time zone ~> GMT |