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

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.

主站蜘蛛池模板: 夏河县| 延吉市| 广德县| 上杭县| 双鸭山市| 宁都县| 玉田县| 定南县| 航空| 北流市| 彭州市| 靖江市| 克拉玛依市| 额敏县| 墨脱县| 进贤县| 石河子市| 义乌市| 留坝县| 仁布县| 炎陵县| 绥棱县| 平昌县| 柳河县| 崇仁县| 遂宁市| 皋兰县| 娱乐| 新安县| 白玉县| 通渭县| 阜新| 额尔古纳市| 磴口县| 南阳市| 喜德县| 霍城县| 互助| 辽阳市| 镇康县| 比如县|