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

A word on VACUUM FULL

Instead of the 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.
主站蜘蛛池模板: 丰都县| 秭归县| 兴山县| 临西县| 水富县| 友谊县| 墨竹工卡县| 泰来县| 息烽县| 论坛| 宜昌市| 黎平县| 乌鲁木齐县| 扎囊县| 鄯善县| 阿瓦提县| 荣成市| 黑龙江省| 宜昌市| 乌兰察布市| 汝阳县| 闽侯县| 铜陵市| 阿鲁科尔沁旗| 淮北市| 阿拉善左旗| 通道| 岐山县| 益阳市| 肥西县| 宣化县| 东方市| 崇左市| 澄迈县| 农安县| 水富县| 辽阳市| 甘谷县| 乐昌市| 牙克石市| 孝昌县|