Skip to content

Instantly share code, notes, and snippets.

@allanlei
Created January 14, 2012 01:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save allanlei/1609788 to your computer and use it in GitHub Desktop.
Save allanlei/1609788 to your computer and use it in GitHub Desktop.
Cron job for cleaning PostgreSQL
@daily vacuumdb -U postgres --all --analyze -q
@monthly vacuumdb -U postgres --all --analyze --full -q
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment