On va voir si 4 jours suffisent...
darcs-hash:20070208235736-68412-10957e1d6e130b39837a3763f50f79b7ded0466f.gz
This commit is contained in:
parent
06085c4de5
commit
adc3ee2002
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 '5 days';
|
||||
DELETE FROM virus where date< timestamp 'now' - interval '5 days';
|
||||
DELETE FROM flood where date< timestamp 'now' - interval '5 days';
|
||||
DELETE FROM p2p where date< timestamp 'now' - interval '5 days';
|
||||
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';
|
||||
|
||||
-- suppression complète des entrées
|
||||
VACUUM;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue