On retourne 2 jours pour viter de remplir le /var de rouge avec le
dump gnr tous les soirs. darcs-hash:20070213070837-68412-425f707c43143b254004d16b7b41500a6f4fc534.gz
This commit is contained in:
parent
ae9826de08
commit
688f808fcc
1 changed files with 4 additions and 4 deletions
|
@ -3,10 +3,10 @@
|
|||
-----------------------------------------------------------------
|
||||
|
||||
-- effacement des vieux enregistrements
|
||||
DELETE FROM upload where date< timestamp 'now' - interval '4 days';
|
||||
DELETE FROM virus where date< timestamp 'now' - interval '4 days';
|
||||
DELETE FROM flood where date< timestamp 'now' - interval '4 days';
|
||||
DELETE FROM p2p where date< timestamp 'now' - interval '4 days';
|
||||
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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue