- Mastering PostgreSQL 9.6
- Hans Jurgen Schonig
- 114字
- 2021-07-09 19:57:14
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.
推薦閱讀
- 繪制進(jìn)程圖:可視化D++語言(第1冊(cè))
- 自動(dòng)控制工程設(shè)計(jì)入門
- Canvas LMS Course Design
- Spark編程基礎(chǔ)(Scala版)
- Photoshop CS4經(jīng)典380例
- Visual C# 2008開發(fā)技術(shù)實(shí)例詳解
- 條碼技術(shù)及應(yīng)用
- 分布式多媒體計(jì)算機(jī)系統(tǒng)
- 網(wǎng)絡(luò)化分布式系統(tǒng)預(yù)測(cè)控制
- 工業(yè)機(jī)器人運(yùn)動(dòng)仿真編程實(shí)踐:基于Android和OpenGL
- Excel 2007技巧大全
- LMMS:A Complete Guide to Dance Music Production Beginner's Guide
- 嵌入式Linux系統(tǒng)實(shí)用開發(fā)
- 3ds Max造型表現(xiàn)藝術(shù)
- AMK伺服控制系統(tǒng)原理及應(yīng)用