Commit e5229071 authored by Pierre-Elliott Bécue's avatar Pierre-Elliott Bécue
Browse files

[maintenance.sql] Adieu flood, bonjour upload6

parent ebf69f91
......@@ -4,15 +4,19 @@
-- effacement des vieux enregistrements
DELETE FROM upload where date< timestamp 'now' - interval '2 days';
-- la même pour upload6
DELETE FROM upload6 WHERE date< timestamp 'now' - interval '2 days';
-- On ne blackliste plus pour virus, on droppe seulement
-- DELETE FROM virus where date< timestamp 'now' - interval '2 days';
DELETE FROM flood where date< timestamp 'now' - interval '2 days';
-- Idem pour flood
-- DELETE FROM flood where date< timestamp 'now' - interval '2 days';
-- suppression complète des entrées
VACUUM;
-- réindexation des tables
REINDEX TABLE upload;
REINDEX TABLE virus;
REINDEX TABLE upload6
-- 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