Show Table of Contents
12.7. データベースのメンテナンス
データベースのメンテナンスは定期的に実行することが推奨されます。たとえば、cronjob を設定してデータベースから冗長データを削除することができます。以下のコマンドでこれを実行できます。
# su postgres - bash-4.1$ psql -d rhnschema -c 'VACUUM;' bash-4.1$ exit
上記のコマンドでは
postgres ユーザーに切り替わり、Satellite 5 データベース (rhnschema) にアクセスし、データベース表で VACUUM が実行されます。これにより、実行されないタプルが占めていたストレージを回復されます。削除されたタプルまたは古くなったタプルは通常、VACUUM が実行されないと表から物理的に削除されず、存在し続けることになります。

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.