开头还是介绍一下群,如果感兴趣PolarDB ,MongoDB ,MySQL ,PostgreSQL ,Redis, Oceanbase, Sql Server等有问题,有需求都可以加群群内有数据库行业大咖,加群请联系 liuaustin3 ,(共2320人左右 1 + 2 + 3 + 4 +5+6 +7) 新人分配到6群。
常用的PostgreSQL的小版本已经总结了12,15,16,这次我们总结一下PostgreSQL 14版本中的小版本,PostgreSQL 14版本相对于PG15来说在一些功能的更新上稍显不足,但这个版本正好在PG的爆发期的一个时间点上发布,使用这个版本的群体不少,并且这个版本目前也更新到了14.12这个版本,所以需要分析一下。
注:PG14.4 修复严重的BUG,使用PG14需要使用PG14.4及以后的版本
注:PG14.6 修复了vacuum特殊情况下导致的系统重启的可能性

PG14
| 数据库版本 | 更新要点/bug fixed | 注释/链接 |
|---|---|---|
| PG14 | 存储过程返回数据参数的修改 | https://www.postgresql.org/docs/release/14.0/ |
| PG14 | 范围类型扩展,添加非连续数据范围 | |
| PG14 | 针对并行,高并发工作负载,分区表逻辑复制,vacuum做出大量性能改进 | |
| PG14 | 提高BTREE索引更新的效率,减少索引膨胀 | B-tree index updates are managed more efficiently, reducing index bloat. |
| PG14 | 对vacuum在遇到transaction ID wraparound的情况更加积极的进行vacuum 工作 | |
| PG14 | 提高收集统计信息的准确性,为更复杂的查询提供更好的查询计划 | Extended statistics can now be collected on expressions, allowing better planning results for complex queries. |
| PG14 | 添加预定义角色pg_read_all_data 和 pg_write_all_data | |
| PG14 | 允许真空回收未使用的尾部堆行指针所占用的空间允许真空在最小锁定索引操作期间更积极地删除死行 | https://www.postgresql.org/docs/release/14.0/ |
| PG14 | 添加跳过 TOAST 表吸尘的能力 | VACUUM now has a PROCESS_TOAST option which can be set to false to disable TOAST processing, and vacuumdb has a --no-process-toast option. |
| PG14 | 允许 B 树索引添加以删除过期的索引条目来防止页分裂 | This is particularly helpful for reducing index bloat on tables whose indexed columns are frequently updated. |
| pg14 | 提高MVCC快照实现执行的速度 | This also improves performance when there are many idle sessions. |
| PG14 | 添加在 TOAST 数据上使用LZ4 压缩的能力 | This can be set at the column level, or set as a default via server parameter default_toast_compression. The server must be compiled with --with-lz4 to support this feature. The default setting is still pglz. |
| PG14 | 添加众多函数对许多操作的进度进行展示 | |
| PG14 | 添加idle超时的函数 | Add server parameter idle_session_timeout to close idle sessions |
| PG14 | 修改一些参数的默认值 | Change checkpoint_completion_target default to 0.9 |
PG14.1
| 数据库版本 | 更新要点/bug fixed | 注释/链接 |
|---|---|---|
| PG14.1 | 并行的VACUUM如果表中至少有两个索引大于min_parallel_index_scan_size的阈值,而有些索引低于该阈值,则无法处理这些低于阈值的索引。这可能会导致这些索引损坏,因为它们仍包含对VACUUM删除的任何堆项的引用;后续使用此类索引的查询很可能会返回不应返回的行。此问题不会影响自动清理(autovacuum),因为它不使用并行清理。但是,对于具有适当索引大小组合的任何手动清理的表,建议重新索引。 | Ensure that parallel VACUUM doesn't miss any indexes (Peter Geoghegan, Masahiko Sawada) |
| PG14.1 | 修复在主服务器发送以部分 WAL 记录结尾的 WAL 段后崩溃的情况下的物理复制 | https://www.postgresql.org/docs/release/14.1/ |
| pg14.1 | 修复reindex concurrently命令执行的问题 | Fix REINDEX CONCURRENTLY to preserve operator class parameters that were attached to the target index |
| PG14.1 | 避免仅使用 MCV 统计信息来估算列值范围,因为在某些情况下这可能不准确 |
PG14.2
| 数据库版本 | 更新要点/bug fixed | 注释/链接 |
|---|---|---|
| PG14.2 | 严重的错误,在对toast表进行reindex concurrently操作会导致索引损坏 | If applied to a TOAST table or TOAST table's index, REINDEX CONCURRENTLY tended to produce a corrupted index. This happened because sessions updating TOAST entries released their ROW EXCLUSIVE locks immediately, rather than holding them until transaction commit as all other updates do. The fix is to make TOAST updates hold the table lock according to the normal rule. Any existing corrupted indexes can be repaired by reindexing again. |
| PG14.2 | 在页面修剪期间,修复导致HOT链损坏的情况发生 | Fix corruption of HOT chains when a RECENTLY_DEAD tuple changes state to fully DEAD during page pruning |
| PG14.2 | 修复了当数据库一致性恰好在 WAL 页面边界上达成时,WAL 重放失败的问题 | |
| PG14.2 | 修复了物理复制中的XID插入顺序错误的问题 | Fix startup of a physical replica to tolerate transaction ID wraparound |
| PG14.2 | 在逻辑复制中子表数据可能进行重复传输的问题 | In logi |

最低0.47元/天 解锁文章
1031

被折叠的 条评论
为什么被折叠?



