Commit 5f6a11a3 authored by chove's avatar chove
Browse files

import initial

darcs-hash:20051023222359-4ec08-6f238533d032929639e8e6095770bc643056ab9c.gz
parent 299598db
-----------------------------------------------------------------
-- Maintenance de la base pgsql sur rouge, lancé par cron
-----------------------------------------------------------------
-- effacement des vieux enregistrements
DELETE FROM upload where date< timestamp 'now' - interval '2 days';
DELETE FROM virus where date< timestamp 'now' - interval '2 days';
DELETE FROM flood where date< timestamp 'now' - interval '2 days';
DELETE FROM p2p where date< timestamp 'now' - interval '2 days';
-- suppression complète des entrées
VACUUM FULL;
-- réindexation des tables
REINDEX TABLE upload;
REINDEX TABLE virus;
-- REINDEX TABLE flood; -- flood n'a pas d'index
REINDEX TABLE p2p;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment