以下是在heroku管理的postgresql 9.2數據庫的所有表上運行手動真空操作之前和之後的頂級臃腫表。正如你所看到的,沒有太大的變化,有些浪費甚至增加了...
原因是什麼?這是正常的行爲嗎?postgres真空不會改變臃腫
前:
type | schemaname | object_name | bloat | waste
-------+------------+------------------------+-------+------------
index | public | table_1 | 1.4 | 113 MB
table | public | table_2 | 1.1 | 92 MB
table | public | table_3 | 1.1 | 70 MB
index | public | table_4 | 1.2 | 66 MB
index | public | table_5 | 1.2 | 65 MB
index | public | table_6 | 1.2 | 64 MB
index | public | table_7 | 1.1 | 34 MB
table | public | table_8 | 1.1 | 19 MB
後:
type | schemaname | object_name | bloat | waste
-------+------------+------------------------+-------+------------
index | public | table_1 | 1.4 | 123 MB
table | public | table_2 | 1.1 | 82 MB
table | public | table_3 | 1.1 | 82 MB
index | public | table_4 | 1.3 | 72 MB
index | public | table_5 | 1.3 | 72 MB
index | public | table_6 | 1.3 | 71 MB
index | public | table_7 | 1.1 | 39 MB
table | public | table_8 | 1.1 | 19 MB
你可以用'真空FULL'收縮表,以最小尺寸,但效果將會是暫時性的。另外不要忘記吸塵指數。 –