本期周报由 Cloudberry Database 社区选编自英文版《Postgres Weekly》555 期[1]与 556 期[2],内容较原文有差异。
博文推荐
The Draft Postgres 17 Release Notes[3] By BRUCE MOMJIAN
PostgreSQL 17 预计于今年 9/10 月左右发布,目前 Bruce 已完成 Postgres 17 的第一版发版说明,包括了很多改进点,目前已有多篇文章来对 PostgreSQL 17 进行解释,可阅读《PostgreSQL 17 Beta1发布》。
When Postgres Said 'No Thanks, I Don't Need Your Index'[4] By JEAN-MARK WRIGHT
文章介绍了探索优化 PostgreSQL 查询的旅程,通过策略调整实现 70 倍的速度提升。
How to Collapse Your Stack Using Postgres for.. Everything[5] By JAMES BLACKWOOD-SEWELL
使用 PostgreSQL 实现一切的想法不新鲜,随着 Postgres 的日益普及这一方案获得更多关注。文章提到,可以利用 PostgreSQL 的灵活性和扩展性,打造基于 PostgreSQL 的技术堆栈,可以支持全文搜索、时序、向量和分析工作负载,降低维护多个数据库的复杂性和潜在压力。
Postgres 16.3, 15.7, 14.12, 13.15 和 12.19[6] 发布
本次发布都是当前维护版本的系列更新,重点在 Bug 修复,PostgreSQL 14-16 也对pg_stats_ext 和 pg_stats_ext_exprs 出现的安全问题进行了更新加固。值得注意的是,PostgreSQL 12 系列将在 2024 年 11 月结束生命周期,官方不再提供更新。更多版本的生命周期,可参考 PostgreSQL 官网介绍[7]。
阅读推荐
📄What We're Excited About in Postgres 17[8] By TIMESCALE
📄Making a Postgres Query 1,000 Times Faster[9] By ALEJANDRO GARCÍA MONTORO
📄Using In-Memory Disk for Postgres' Temporary Files[10] By STEFAN FERCOT
📄From Slow Query to Fast — via Stats[11] By ERIC FRITZ (RENDER)
📺Scaling Clubhouse from 10K to 10 Million Users in 6 Months with Postgres[12] By HARRY TORMEY AND LUKE DEMI
📄Optimizing SQL Queries: Some Postgres Best Practices[13] By MARKUS WIREKAT
📄Row-Level Transformations in Postgres CDC Using Lua[14] SAI SRIRAMPUR (PEERDB)
📄Removing Bloat with the pg_repack Extension[15] By MUHAMMAD ALI
📄When to Split Patches for Postgres[16] By PETER EISENTRAUT
📄Dealing with Invisible Indexes in an Oracle to Postgres Migration[17] By DEEPAK MAHTO
📄What’s New with Postgres at Microsoft, 2024 Edition[18] By MICROSOFT
📄Advanced psql Scripting with coproc[19] By DANIEL VÉRITÉ
新闻简报
2024 Stackoverflow Developer Survey[20] 开启
欢迎为 PostgreSQL 投上一票 😄
🇬🇷 PGConf.EU 2024 将于 2024 年 10 月在雅典举办
目前开启赞助征集,有兴趣的可参考 https://2024.pgconf.eu/become-sponsor/ 。
代码与工具
PgHero 3.5[21] 发布
一款 Postgres 的性能看板。
Pgpool-II 4.5.2, 4.4.7, 4.3.10, 4.2.17 and 4.1.20[22] 发布
一款功能强大的连接池和负载均衡工具。
pgRoll 0.6[23] 发布
一款 PostgreSQL 零宕机迁移工具。
DBMate 2.16[24] 发布
轻量级、与框架无关的数据库迁移工具。
Bob 0.26[25] 发布
Go 语言的 SQL 查询构建器和 ORM/Factory 生成器。
pg_dumpbinary v2.17[26] 发布
以二进制格式转储数据库。
pg_lakehouse[27]
将 Postgres 转为一个可在对象存储(如 S3)和表格式(如 Delta Lake)上进行分析查询的引擎。查询下推到 Apache DataFusion。
ParadeDB 0.7[28] 发布
基于 Postgres 构建的 ElasticSearch 替代方案,支持搜索和分析。
PostgREST 12.0.3[29] 发布
适用于 Postgres 数据库的 REST API。
Prisma 5.14[30] 发布
适用于 Node.js 和 TypeScript 的流行 ORM。
ScalikeJDBC 4.3[31] 发布
用于 Scala 的数据库客户端库。
DoltgreSQL 0.7[32] 发布
版本化 Postgres ── Dolt[33](由 Git 启发创建的数据库)风格的 Postgres 版本。
pspg 5.8.6[34] 发布
为 PostgreSQL 用户打造的 Unix 终端表格分页显示工具,可方便和查看终端信息,支持搜索、选中行列、导出选中区域、主题选择、复制功能等。
pg_timeseries[35]── 一款新的 PostgreSQL 时序扩展
大部分由 SQL 实现,侧重良好的用户体验,遵循 PostgreSQL 许可协议。限于协议许可的原因,导致之前比较流行的 Timescale 在很多业务中无法使用。注意,该项目处于早期。
引用链接
[1] 555 期: https://postgresweekly.com/issues/555[2] 556 期: https://postgresweekly.com/issues/556[3] The Draft Postgres 17 Release Notes: https://www.postgresql.org/docs/17/release-17.html[4] When Postgres Said 'No Thanks, I Don't Need Your Index': https://jaywhy13.hashnode.dev/that-time-postgresql-said-no-thanks-i-dont-need-your-index[5] How to Collapse Your Stack Using Postgres for.. Everything: https://www.timescale.com/blog/how-to-collapse-your-stack-using-postgresql-for-everything/[6] Postgres 16.3, 15.7, 14.12, 13.15 和 12.19: https://www.postgresql.org/about/news/postgresql-163-157-1412-1315-and-1219-released-2858/[7] PostgreSQL 官网介绍: https://www.postgresql.org/support/versioning/[8] What We're Excited About in Postgres 17: https://www.timescale.com/blog/what-were-excited-about-postgresql-17/[9] 📄 Making a Postgres Query 1,000 Times Faster: https://mattermost.com/blog/making-a-postgres-query-1000-times-faster/[10] 📄 Using In-Memory Disk for Postgres' Temporary Files: https://pgstef.github.io/2024/05/20/in_memory_tmp_files.html[11] 📄 From Slow Query to Fast — via Stats: https://render.com/blog/postgresql-slow-query-to-fast-via-stats?trk=feed_main-feed-card_feed-article-content[12] Scaling Clubhouse from 10K to 10 Million Users in 6 Months with Postgres: https://www.stepchange.work/blog/scaling-clubhouse-from-10k-to-10-million-users-in-6-months-with-postgres[13] Optimizing SQL Queries: Some Postgres Best Practices: https://wirekat.com/optimizing-sql-based-on-postgresql/[14] Row-Level Transformations in Postgres CDC Using Lua: https://blog.peerdb.io/row-level-transformations-in-postgres-cdc-using-lua[15] Removing Bloat with the pg_repack Extension: https://stormatics.tech/blogs/removing-bloat-with-pg_repack-extension[16] When to Split Patches for Postgres: https://peter.eisentraut.org/blog/2024/05/14/when-to-split-patches-for-postgresql[17] Dealing with Invisible Indexes in an Oracle to Postgres Migration: https://databaserookies.wordpress.com/2024/05/13/conversion-chronicles-invisible-indexes-in-oracle-to-postgresql-migration/[18] 📄 What’s New with Postgres at Microsoft, 2024 Edition: https://techcommunity.microsoft.com/t5/azure-database-for-postgresql/what-s-new-with-postgres-at-microsoft-2024-edition/ba-p/4140085[19] 📄 Advanced psql Scripting with coproc: https://postgresql.verite.pro/blog/2024/05/13/advanced-psql-coproc.html[20] Stack Overflow Developer Survey: https://stackoverflow.az1.qualtrics.com/jfe/form/SV_6rJVT6XXsfTo1JI[21] PgHero 3.5: https://github.com/ankane/pghero[22] Pgpool-II 4.5.2, 4.4.7, 4.3.10, 4.2.17 and 4.1.20: https://www.postgresql.org/about/news/pgpool-ii-452-447-4310-4217-and-4120-released-2859/[23] pgRoll 0.6: https://github.com/xataio/pgroll[24] DBMate 2.16: https://github.com/amacneil/dbmate[25] Bob 0.26: https://github.com/stephenafamo/bob/releases/tag/v0.26.0[26] pg_dumpbinary v2.17: https://www.postgresql.org/about/news/pg_dumpbinary-v217-released-2862/[27] pg_lakehouse: https://github.com/paradedb/paradedb/tree/dev/pg_lakehouse[28] ParadeDB 0.7: https://github.com/paradedb/paradedb[29] PostgREST 12.0.3: https://postgrest.org/en/v12/[30] Prisma 5.14: https://github.com/prisma/prisma/releases/tag/5.14.0[31] ScalikeJDBC 4.3: https://github.com/scalikejdbc/scalikejdbc/releases/tag/4.3.0[32] DoltgreSQL 0.7: https://github.com/dolthub/doltgresql[33] Dolt: https://github.com/dolthub/dolt[34] pspg 5.8.6: https://github.com/okbob/pspg[35] pg_timeseries: https://tembo.io/blog/pg-timeseries
Cloudberry Database 是专门面向 AI 和分析场景打造的一款开源数据库,团队由 Greenplum Database 原始开发团队成员和 PostgreSQL 贡献者组成。作为 Greenplum Database 的衍生版,Cloudberry Database 与 Greenplum Database 保持原生兼容,并能实现无缝迁移,具备更新的内核和更丰富的功能。
GitHub: https://github.com/cloudberrydb/cloudberrydb
⭐️点击「阅读原文」,关注 GitHub,点个收藏吧!⭐️

