Ryan Lambert: PostgreSQL 16 improves infinity: PgSQLPhriday #012

原文英文,约700词,阅读约需3分钟。发表于:

This month's #pgsqlphriday challenge is the 12th PgSQL Phriday, marking the end of the first year of the event! Before getting into this month's topic I want to give a shout out to Ryan Booz for starting #pgsqlphriday. More importantly though, a huge thank you to the hosts and contributors from the past year! I looked forward to seeing the topic each month followed by waiting to see who all would contribute and how they would approach the topic. Check out pgsqlphriday.com for the full list of topics, including recaps from each topic to link to contributing posts. This month is the 7th topic I've been able to contribute to the event. I even had the honor of hosting #005 with the topic Is your data relational? I'm really looking forward to another year ahead! Now returning to your regularly scheduled PgSQL Phriday content. This month, Ryan Booz chose the topic: What Excites You About PostgreSQL 16? With the release of Postgres 16 expected in the near(ish) future, it's starting to get real. It won't be long until casual users are upgrading their Postgres instances. To decide what to write about I headed to the Postgres 16 release notes to scan through the documents. Through all of the items, I picked this item attributed to Vik Fearing. Accept the spelling "+infinity" in datetime input The rest of this post looks at what this means, and why I think this matters.

本文介绍了PgSQLPhriday挑战的第12期,标志着该活动的第一年的结束。本月的主题是“关于PostgreSQL 16,你有什么激动的地方?”其中一个改进是接受在日期时间输入中使用“+infinity”,表示无限正值。在Postgres 15及之前的版本中,将“+infinity”转换为TIMESTAMPTZ会失败,但在Postgres 16中,这个命令会返回预期的无限值。作者认为这个改进很重要,因为它保持了查询语法的一致性,增强了对Postgres等关键后端系统的信任。此外,文章还提到了如何在Docker中使用Postgres 16 Beta 3。

相关推荐 去reddit讨论