Red Hat Training

A Red Hat training course is available for Red Hat Virtualization

18.7. Engine Vacuum 工具

18.7.1. Engine Vacuum 工具

Engine Vacuum 工具通过更新表和删除死行来维护 PostgreSQL 数据库,从而允许重复使用磁盘空间。有关 VACUUM 命令及其参数的详情,请查看 PostgreSQL 文档
Engine Vacuum 命令是 engine-vacuum。您需要以 root 用户身份登录,并为 Red Hat Virtualization 环境提供管理凭证。
或者,可以使用 engine-setup 命令自定义现有安装时运行 Engine Vacuum 工具:
$ engine-setup
...
[ INFO  ] Stage: Environment customization
...
Perform full vacuum on the engine database engine@localhost?
This operation may take a while depending on this setup health and the
configuration of the db vacuum process.
See https://www.postgresql.org/docs/9.2/static/sql-vacuum.html
(Yes, No) [No]:
Yes 选项以完整的 vacuum 模式运行引擎 Vacuum 工具。