16.9. 重新声明 PostgreSQL 空间
PostgreSQL 数据库可以使用大量磁盘空间,特别是在大量加载部署中。使用这个流程在 Satellite 中重新声明一些此磁盘空间。
流程
停止除
postgresql服务外的所有服务:# satellite-maintain service stop --exclude postgresql
切换到
postgres用户并回收数据库上的空间:# su - postgres -c 'vacuumdb --full --all'
在 vacuum 完成后启动其他服务:
# satellite-maintain service start