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 | 76 comments on HN | Vote on HN (opens Hacker News) |

View full thread · View on Hacker News

Comment thread (5)

  1. Even worse: your future timestamps will be corrupted if the timezone definition ever changes!

    Your country abolishes DST? Good luck trying to fix that mess...

    Replies (1)
    1. Imagine some kind of assessment system (like tests / questionnaires); the only relevant “time” is during that assessment.

      You would not need to convert that time to some other time zone and what have you 3 years from now.

      For other stuff, of course, utc is enough.

      However it is just huge amount of cope trying to defend that you cannot store what ms sql allows you to.

      Replies (1)
      1. Pg can store it, either as an extra column or a custom type. DatetimeOffset isn't in the standard, which I think speaks to how niche the need is.
        Replies (1)
        1. I understand it is not a standard, but these types are very common in programming languages. If need to jump through hoops to store your data (ORM), this is not user-friendly, that's all.
          Replies (1)
          1. > these types are very common in programming languages

            Mostly out of legacy mistakes in datetime handling.