PostgreSQL 19 比往常晚了两个月才发布,部分原因是要处理由 AI 报告的安全漏洞,但它带来了一个亮眼的新特性:WAIT FOR LSN 命令。该命令通过等待备库将预写日志(write-ahead log)重放到指定的日志序列号,为查询备库副本的应用程序提供读己之写(read-your-writes)一致性。文章演示了应用程序如何在写入后保存 LSN,并在后续从副本读取之前使用带可选超时参数的 WAIT FOR LSN。作者指出,这种模式以前在 MediaWiki 等系统中是手工实现的,使用了诸如 WAIT_FOR_EXECUTED_GTID_SET() 之类的 MySQL 复制函数。
Most years PostgreSQL ships a new release in September, but this year's release came two months later thanks mainly to the flurry of issues that the PostgreSQL team needed to address as part of the ongoing AI-reported vulnerability apocalypse.
This release was definitely worth the wait. My favorite new feature is this one:
继续阅读全文
为了尊重作者,这里只展示开头几段。你可以去原文阅读,或者在 HorizonReader 里读:划线做笔记、让 AI 帮忙。
AI 摘要The author is publishing daily videos through December demonstrating new Datasette features in an advent calendar format. The first video covers large CSV and TSV imports newly added in Datasette 1.0a46, where files of any size are streamed, parsed in the browser, and sent to the insert API in batches. The demonstration includes importing 26,000 rows of iNaturalist data in seconds, plus faceting for analysis and a new UI for selecting and reordering table columns.
AI 摘要The datasette 1.0a46 alpha release introduces a major new feature for large CSV imports, which is demonstrated in the first video of a new advent calendar series running up to Christmas. Additionally, row pages now list incoming many-to-one foreign key rows, formatted similarly to the new many-to-many feature.
AI 摘要ty, Astral's fast Python type checker, has reached version 1.0 and is now recommended for production use. It is the default type checker at OpenAI, where migrating to it yielded a median 24x speedup and a 73% reduction in peak memory usage across millions of lines of critical Python. It also offers built-in Django support when the django-types package is installed.
AI 摘要AT Protocol, the open protocol behind Bluesky, has launched the public beta of Spaces, a new feature introducing private and selectively shared data to a network that was previously entirely public. Spaces act as groups whose members gain permission to read private data hosted on the owner's Personal Data Server (PDS), allowing sharing with any group size from a personal journal to a community of millions. Rather than an end-user feature, Spaces is designed as a platform for building new applications on the open social internet.
AI 摘要The article quotes Josh Dunsterville responding to the announcement that Cursor has been rebranded as Grok Build, a product from SpaceXSI (previously SpaceXAI, formerly xAI, aka XAI Corp). It highlights the tangled chain of corporate renamings, noting that XAI Corp—owner of X (previously Twitter)—is itself owned by SpaceX. The piece is tagged with grok, ai, and cursor.