- Mastering PostgreSQL 10
- Hans Jürgen Sch?nig
- 113字
- 2021-06-30 19:03:52
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.
推薦閱讀
- 大數據時代的數據挖掘
- 空間傳感器網絡復雜區域智能監測技術
- 小型電動機實用設計手冊
- WordPress Theme Development Beginner's Guide(Third Edition)
- Docker High Performance(Second Edition)
- Apache Superset Quick Start Guide
- 基于32位ColdFire構建嵌入式系統
- 軟件構件技術
- 格蠹匯編
- Learning ServiceNow
- 筆記本電腦維修之電路分析基礎
- Data Analysis with R(Second Edition)
- 單片機C51應用技術
- SQL語言與數據庫操作技術大全
- Hadoop大數據開發基礎