sql fixes

This commit is contained in:
albert
2012-09-20 19:21:23 -04:00
parent 72cc2ee1ef
commit d3992dadac
2 changed files with 11 additions and 7 deletions

View File

@@ -1,4 +1,4 @@
set statement_timeout = 0;
delete from posts where id < 1140000;
delete from post_appeals where post_id < 1140000;
delete from posts where id < (select max(id) - 50000 from posts);
delete from post_appeals where post_id < (select max(id) - 50000 from posts);
vacuum analyze;