Commit af0c90d5 authored by Pierre-Elliott Bécue's avatar Pierre-Elliott Bécue

[maintenance.sql] Tiens, j'ai oublié de le modifier.

parent 741fba9e
......@@ -3,9 +3,9 @@
-----------------------------------------------------------------
-- effacement des vieux enregistrements
DELETE FROM upload where date< timestamp 'now' - interval '5 days';
DELETE FROM upload where stamp_inserted < timestamp 'now' - interval '5 days';
-- la même pour upload6
DELETE FROM upload6 WHERE date< timestamp 'now' - interval '5 days';
-- DELETE FROM upload6 WHERE date< timestamp 'now' - interval '5 days';
-- On ne blackliste plus pour virus, on droppe seulement
-- DELETE FROM virus where date< timestamp 'now' - interval '2 days';
-- Idem pour flood
......@@ -16,7 +16,7 @@ VACUUM FULL;
-- réindexation des tables
REINDEX TABLE upload;
REINDEX TABLE upload6;
-- 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