PostgreSQL 12中的改进有哪些

58次阅读
没有评论

共计 1640 个字符,预计需要花费 5 分钟才能阅读完成。

本篇内容主要讲解“PostgreSQL 12 中的改进有哪些”,感兴趣的朋友不妨来看看。本文介绍的方法操作简单快捷,实用性强。下面就让丸趣 TV 小编来带大家学习“PostgreSQL 12 中的改进有哪些”吧!

“Automatic”performance improvements
“Automatic”performance improvements 亦即大版本升级时“自然”会带来的性能提升。
Automatic inlining of common table expressions (CTEs)
这个改进先前也介绍过了,在极端情况下可获得极大的性能提升。

Allow parallelized queries when in SERIALIZABLE isolation mode
在 SERIALIZABLE 隔离模式下允许并行查询。

Enable Just-in-Time (JIT) compilation by default
PG 11 或先前版本,默认不启用 JIT,在 12 开始默认启用。

developer changes
PG 12 中与开发相关的改进
Support for the SQL/JSON path language
该特性先前也介绍过了,PG 12 新增的 SQL/JSON,极大提升了“好用性”。

Allow foreign keys to reference partitioned tables
可以允许外键参考分区表,先前版本不支持。

Add partition introspection functions
简化分区管理,PG 12 提供了数个数据字典用于查询分区信息,包括 pg_partition_root(), pg_partition_ancestors()和 pg_partition_tree()

Add connection parameter tcp_user_timeout to control libpq’s TCP timeout
在网络环境较差的情况下,增加 tcp_user_timeout 参数避免因为网络连接等原因导致的 hang 情况。

Show the manual page URL in psql’s“\h[elp]”output for a SQL command
帮助信息有所改进,有兴趣的不妨 \h 对比看看 PG 11 和 PG 12

Allow VACUUM to skip index cleanup
通过禁用 index cleanup 提升 VACUUM 性能。

Add EXPLAIN option SETTINGS to output non-default optimizer settings
对于影响执行计划的参数,如有修改,则通过指定该参数显示修改后的配置参数。

Allow logging of statements from only a percentage of transactions
新增了 log_transaction_sample_rate 参数来实现此功能。对于希望从日志信息得到实际的 SQL 但又不想过分影响性能,该功能适用于这些场景。

DBA changes
DBA 方面的改进
Cause recovery to advance to the latest timeline by default
默认从 current 修改为 latest,众望所归。

Parallel automatic index rebuilding
使用 REINDEX CONCURRENTLY 并行执行索引重建。

The“pg_checksums”utility can now enable/disable page checksums for an offline cluster
“pg_checksums”工具可以禁用 / 启用 page checksum。

Allow values produced by queries to be assigned to pgbench variables
查询中的返回结果值可用于赋值给 pgbench 中的变量。

到此,相信大家对“PostgreSQL 12 中的改进有哪些”有了更深的了解,不妨来实际操作一番吧!这里是丸趣 TV 网站,更多相关内容可以进入相关频道进行查询,关注我们,继续学习!

正文完
 
丸趣
版权声明:本站原创文章,由 丸趣 2023-07-26发表,共计1640字。
转载说明:除特殊说明外本站除技术相关以外文章皆由网络搜集发布,转载请注明出处。
评论(没有评论)