On conserve les logs dans la base un peu plus longtemps (5jours)
darcs-hash:20070129194645-6d78a-5aec4973ed248fa37ffee5323025f450f697d53c.gz
This commit is contained in:
parent
514ea61b2c
commit
0a1f4dac53
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 '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';
|
||||
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';
|
||||
|
||||
-- suppression complète des entrées
|
||||
VACUUM;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue