add script for vacuuming

This commit is contained in:
r888888888
2017-11-15 18:56:19 -08:00
parent 351dbb4137
commit 5f004b6138
2 changed files with 16 additions and 0 deletions

10
script/donmai/vacuum.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/sh
psql -h dbserver <<EOF
set statement_timeout = 0;
vacuum analyze posts;
vacuum analyze tags;
vacuum analyze users;
vacuum analyze favorites;
vacuum analyze comments;
EOF