Postgres 8.4 工具集增进

来源:互联网 发布:spring连接查询数据库 编辑:程序博客网 时间:2024/05/01 06:31
  • Add a VERBOSE option to the CLUSTER command and clusterdb (Jim Cox) 为 CLUSTER 命令和 clusterdb 增加了 VERBOSE 选项
  • Decrease memory requirements for recording pending trigger events (Tom) 减少 了等待记录触发器事件的内存消耗。
Indexes 索引
  • Dramatically improve the speed of building and accessing hash indexes (Tom Raney, Shreya Bhargava) 戏剧性的提升了构建和访问 hash 索引的速度。

    This allows hash indexes to be sometimes faster than btree indexes. However, hash indexes are still not crash-safe.

    这使得 hash 索引有时候比 btree 索引更快。 然而 hash 索引仍然不是冲突安全的。

  • Makehash indexes store only the hash code, not the full value of theindexed column (Xiao Meng) Hash 索引只保存 hash 码,不保存被索引列的完整值。

    This greatly reduces the size of hash indexes for long indexed values, improving performance.

    这大大减少了长值索引的尺寸,提升了性能。

  • Implement fast update option for GIN indexes (Teodor, Oleg) 实现了 GIN 索引 的快速更新选项。

    This option greatly improves update speed at a small penalty in search speed.

    这个选项牺牲了一点点查询速度,大大提升了更新速度。

  • xxx_pattern_opsindexes can now be used for simple equality comparisons, not only forLIKE (Tom) xxx_pattern_ops 索引现在可以用于简单的判等比较,而不仅是 LIKE。
Full Text Indexes 全文索引
  • Removethe requirement to use @@@ when doing GIN weighted lookups on full textindexes (Tom, Teodor) 移除了在全文索引上进行 GIN 权重查询时所需的 @@@ 操 作。

    The normal @@ text search operator can be used instead.

    这里可以用 @@ 文本搜索操作符。

  • Add an optimizer selectivity function for @@ text search operations (Jan Urbanski) 为 @@ 文本搜索操作符增加了一个优化的搜索函数。
  • Allow prefix matching in full text searches (Teodor Sigaev, Oleg Bartunov) 允 许在全文搜索中进行前缀匹配。
  • Support multi-column GIN indexes (Teodor Sigaev) 支持多列倒排索引。
  • Improve support for Nepali language and Devanagari alphabet (Teodor) 增加了黎 巴嫩语和竼文字母的支持。
VACUUM
  • Track free space in separate per-relation "fork" files (Heikki) 每个关系在独立的“分支”文 件里跟踪可用空间。

    Free space discovered by VACUUM is now recorded in _fsmfiles, rather than in a fixed-sized shared memory area. Themax_fsm_pages and max_fsm_relations settings have been removed, greatlysimplifying administration of free space management.

    现在 VACUUM 回收的可用空间保存在 _fsm 文件中,而不是在一个变长的空享内存空间。 去除了 max_fsm_pages 和 max_fsm_relations 设置,大大简化了可用空间的维护管理。

  • Add a visibility map to track pages that do not require vacuuming (Heikki) 添 加了一个视界映射以跟踪不需要优化的页。

    Thisallows VACUUM to avoid scanning all of a table when only a portion ofthe table needs vacuuming. The visibility map is stored in per-relation"fork" files. 这样,只有部分表需要优化时, VACUUM 就无需扫描所有的表。视界映射存储于 每个关系“分支”

  • Addvacuum_freeze_table_age parameter to control when VACUUM should ignorethe visibility map and do a full table scan to freeze tuples (Heikki)添加了 vacuum_freeze_table_age 参数以控制 VACUUM 应该忽略视界映射还是要扫描所有表。
  • Track transaction snapshots more carefully (Alvaro) 跟踪事务快照更为明确。

    This improves VACUUM's ability to reclaim space in the presence of long-running transactions. 这提高了 VACUUM 回收长时事务占用的内存的能力。

  • Addability to specify per-relation autovacuum and TOAST parameters inCREATE TABLE (Alvaro, Euler Taveira de Oliveira) Create TABLE增加了指定每关系自动优 化和 TOAST 参数的能力。

    Autovacuum options used to be stored in a system table.

    Autovacuum 仍存储于系统表。

  • Add —freeze option to vacuumdb (Bruce) 为 vacuumdb 增加了 —freeze 选项。