News for hackers. Stuff that matters.
Re:Postgres Insider Terminology by biztos on Saturday November 05, 2022 @10:54PM (#33488363)
Per the docs[0], TIMESTAMP WITH TIME ZONE is preferred because it will automatically convert to/from the stored UTC to whatever your time zone is set to, in the config (by default) or within a query.

I think you also need it for converting input at specified time zones, which is more complicated than one might hope, using AT TIME ZONE.

So the point is about conversion, which is important, but I agree that it’s non-obvious that you need to store the source time zone separately if you ever want to retrieve it.

[0]: https://www.postgresql.org/docs/current/datatype-datetime.ht...

There are no comments on this comment yet.