官术网_书友最值得收藏!

A word on VACUUM FULL

Instead of normal VACUUM, you can also use VACUUM FULL. However, I really want to point out that VACUUM FULL actually locks the table and rewrites the entire relation. In the case of a small table, this might not be an issue. However, if your tables are large, the table lock can really kill you in minutes! VACUUM FULL blocks upcoming writes and therefore some people talking to your database might have the feeling that it is actually down. Hence, a lot of caution is advised.

To get rid of VACUUM FULL, I recommend that you check out pg_squeeze (http://www.cybertec.at/introducing-pg_squeeze-a-postgresql-extension-to-auto-rebuild-bloated-tables/), which can rewrite a table without blocking writes.

主站蜘蛛池模板: 重庆市| 明溪县| 卫辉市| 深水埗区| 望江县| 田林县| 巫溪县| 榆林市| 巴彦淖尔市| 收藏| 景德镇市| 紫金县| 广南县| 武胜县| 连山| 丰宁| 沙雅县| 安多县| 四平市| 宜兴市| 黑山县| 赤峰市| 澳门| 江川县| 依兰县| 泊头市| 读书| 灌阳县| 武川县| 成武县| 达拉特旗| 宝兴县| 梅州市| 曲麻莱县| 平原县| 堆龙德庆县| 齐河县| 固原市| 金溪县| 普安县| 太原市|