本期周报由 Cloudberry Database 社区编译自英文版《Postgres Weekly》544 期[1],内容较原文有差异。
博文推荐

The azure_ai Extension to Azure Database for PostgreSQL[2] By CLAIRE GIORDANO (MICROSOFT)
现在你可以使用 azure_ai 扩展直接从 Azure Database for PostgreSQL 中使用 Azure OpenAI,以及用pgvector 来处理任何嵌入的结果。
PGlite: Postgres in WebAssembly[3] By ELECTRICSQL / NEON
开发者之前就将 Postgres 引入到了 WebAssembly 上下文中,尽管中间有一个 Linux VM 层。PGlite 将 Postgres 的 WASM 构建打包到一个 TypeScript 库中,该库可以在浏览器或 Node.js 或 Bun 上运行,压缩包只有 3.7MB。
The Rest is History: Investigations of WAL[4] By BRIAN PACE (CRUNCHY DATA)
深入了解 Postgres 使用的 WAL 文件( Write-Ahead Logging)。
11 Lessons to Learn When Using NULLs[5] By FRANCESCO TISIOTNULL 有一些有趣的属性和行为需要注意。
The Two Types of Indexes in pgvector[6] By SEMAB TARIQ (STORMATICS)pgvector是当前处理和查询向量的热门扩展,向量需要与过往规范不同的索引类型,本文比较了IVFFLAT和HNSW两种类型。
The Default Value of fdw_tuple_cost Was Updated to 0.2 – Why?[7] By UMAIR SHAHID (STORMATICS)fdw_tuple_cost 的默认值已更新为 0.2,为什么?聊聊 Postgres 近期做的一个更改。
When Less is More: Database Connection Scaling[8] By RICHARD YEN
Postgres 服务器可以处理的连接越多,越好,对吧?不过总有例外情况:如果 max_connections 设置成一个不切实际的数字,即使这些连接没有被使用,也会产生负面影响。
Maximizing Microservice Databases with Kubernetes, Postgres, and CloudNativePG[9] By GABRIELE BARTOLINI
探索如何通过 CloudNativePG 来协同 PostgreSQL 和 Kubernetes。
新闻简报
2024 年的 PostgreSQL 社区活动大部分都已确定日期,并开启演讲征集。这里做个梳理,方便大家参考,详情可访问活动官网:
Nordic PGDay 2024[10]
2024 年 3 月 12 日,挪威奥斯陆
pgDay Paris 2024[11]
2024 年 3 月 14-15 日,法国巴黎
PGConf.de 2024[12]
2024 年 4 月 12 日,德国慕尼黑
PGDay Chicago 2024[13]
2024 年 4 月 26 日,美国芝加哥
PGConf.BE 2024[14]
2024 年 5 月 7 日,比利时 Vlaams Brabant
PGConf.dev 2024(PostgreSQL Development Conference 2024)[15]
2024 年 5 月 28-31 日,加拿大渥太华
Prague PostgreSQL Developer Day 2024[16]
2024 年 6 月 4 日-5 日,捷克布拉格
POSETTE: An Event for Postgres[17]
2024 年 6 月 11 日-13 日,在线举办
Swiss PGDay 2024[18]
2024 年 6 月 27 日-28 日,瑞士苏黎世
PGConf NYC 2024[19]
2024 年 9 月 30-10 月 2 号,美国纽约
代码与工具

pg-lock-tracer[20]
一款基于 eBPF 的锁追踪器,可以深度检测 PostgreSQL 锁活动及相关故障排查。
pgagroal 1.6[21] 发布
一款高性能 Postgres 连接池,1.6 版本新增 CLI/JSON 输出、客户端证书和 macOS 支持。
pg_dumpbinary v2.15[22] 发布
将 Postgres 数据库转储为二进制格式。
Postgres JDBC[23] 更新
全部的维护版本更新,修复安全漏洞 CVE-2024-1597[24]。
Lantern 0.2[25] 发布
一款新的 HNSW/usearch[26] 矢量扩展工具。
SQLpage 0.19[27] 发布
无需复杂编程,使用 SQL 来构建 web 网站。
pg_graphql 1.5.1[28] 发布
为 Postgres 添加 GraphQL 支持。
Good Job 3.25[29] 发布
用于 Rails 的多线程、基于 Postgres 的活跃作业后端。
引用链接
[1] 《Postgres Weekly》544 期: https://postgresweekly.com/issues/544[2] The azure_ai Extension to Azure Database for PostgreSQL: https://techcommunity.microsoft.com/t5/azure-database-for-postgresql/the-azure-ai-extension-to-azure-database-for-postgresql/ba-p/4068932[3] PGlite: Postgres in WebAssembly: https://github.com/electric-sql/pglite[4] The Rest is History: Investigations of WAL: https://www.crunchydata.com/blog/the-rest-is-history-investigations-of-wal-history-files[5] 11 Lessons to Learn When Using NULLs: https://dev.to/ftisiot/11-lessons-to-learn-when-using-nulls-in-postgresqlr-2b7g[6] The Two Types of Indexes in pgvector: https://stormatics.tech/blogs/understanding-indexes-in-pgvector[7] The Default Value of fdw_tuple_cost Was Updated to 0.2 – Why?: https://stormatics.tech/blogs/the-default-value-of-fdw_tuple_cost-was-updated-to-0-2-what-does-that-mean[8] When Less is More: Database Connection Scaling: https://richyen.com/postgres/2021/09/03/less-is-more-max-connections.html[9] Maximizing Microservice Databases with Kubernetes, Postgres, and CloudNativePG: https://gabrielebartolini.it/articles/2024/02/maximizing-microservice-databases-with-kubernetes-postgres-and-cloudnativepg/[10] Nordic PGDay 2024: https://2024.nordicpgday.org/[11] pgDay Paris 2024: https://2024.pgday.paris/[12] PGConf.de 2024: https://2024.pgconf.de/[13] PGDay Chicago 2024: https://2024.pgdaychicago.org[14] PGConf.BE 2024: https://pgconf.be/[15] PGConf.dev 2024(PostgreSQL Development Conference 2024): https://2024.pgconf.dev[16] Prague PostgreSQL Developer Day 2024: https://p2d2.cz/[17] POSETTE: An Event for Postgres: https://www.citusdata.com/posette/2024/[18] Swiss PGDay 2024: https://www.pgday.ch/2024/[19] PGConf NYC 2024: https://2024.pgconf.nyc/[20] pg-lock-tracer: https://github.com/jnidzwetzki/pg-lock-tracer[21] pgagroal 1.6: https://agroal.github.io/pgagroal//release/announcement/2024/02/22/pgagroal-1.6.0.html[22] pg_dumpbinary v2.15: https://www.postgresql.org/about/news/pg_dumpbinary-v215-released-2811/[23] Postgres JDBC: https://www.postgresql.org/about/news/postgresql-jdbc-4272-4261-4255-4244-4239-42228-and-42228jre7-security-update-for-cve-2024-1597-2812/[24] CVE-2024-1597: https://www.cve.org/CVERecord?id=CVE-2024-1597[25] Lantern 0.2: https://github.com/lanterndata/lantern[26] usearch: https://github.com/unum-cloud/usearch[27] SQLpage 0.19: https://sql.ophir.dev/[28] pg_graphql 1.5.1: https://github.com/supabase/pg_graphql/releases/tag/v1.5.1[29] Good Job 3.25: https://github.com/bensheldon/good_job
关于 Cloudberry Database
Cloudberry Database(可简称为“CBDB”或“CloudberryDB”)是面向分析和 AI 场景打造的下一代统一型开源数据库,基于 PostgreSQL 14.4 内核与 Greenplum Database 分布式架构,兼容 PostgreSQL 和 Greenplum 生态,遵循 Apache License 2.0 许可协议,致力于构建开放、友好、中立的开源社区。
GitHub 地址:https://github.com/cloudberrydb/cloudberrydb
官网主页:https://cloudberrydb.org/
👇🏻️扫码加入 Cloudberry Database 交流群👇🏻️

👇🏻️关注公众号👇🏻️
⭐️为 Cloudberry Database 点个赞吧!⭐️

