Unofficial Hacker News companion — get notified on comment replies, and more.

What Changes When You Upgrade from PostgreSQL 18 to 19 (opens external site)

137 points by rgoomar 5 days ago | rishigoomar.com | 75 comments on HN | Vote on HN (opens Hacker News) |

View full thread · View on Hacker News

Comment thread (2)

  1. >> From a datetime manipulation perspective it makes no difference, both are instants and nothing more

    True, but they are instants that include local time zone information.

    For example, in a town straddling a time zone boundary its useful to know what time is where.

    The MSSQL approach is better because it explicitly contains what it says; timestamp with time zone. Postgres explicitly does not store the time zone, preferring instead to store utc time.

    The work around is simple, but postgres objectively stores less information.

    Replies (1)
    1. > For example, in a town straddling a time zone boundary its useful to know what time is where.

      A timezone offset does not even remotely come close to a where, and informational inference by proxy is unreliable at best. If you want to know what time is where, you store the where.

      > The MSSQL approach is better because it explicitly contains what it says; timestamp with time zone.

      It does not contain a timezone. I was going to say that in fairness it does not say it stores a time zone based on its name, but the documentation does say that, so the MSSQL approach is not better, it’s equally useless and misleading.

      > postgres objectively stores less information.

      Storing generally useless information is hoarding. You could store the full provenance of every number in a program alongside that number, it would be “objectively more information”, in almost every case it would also be a worthless waste of resources, and objectively lead to a worse system.