[Unit]
Description=Clean up Quassel backlog
Requisite=postgresql.service
After=postgresql.service

[Service]
User=postgres
Type=oneshot
ExecStart=/usr/bin/psql -a -d quassel -c "DELETE FROM backlog WHERE time < NOW() - INTERVAL '1 months';"
ExecStart=/usr/bin/psql -a -d quassel -c "VACUUM VERBOSE ANALYZE backlog;"
