From b872ac422ea086f610727f287d5fa4bc3531c0c5 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Mon, 25 Oct 2010 07:10:37 +0000 Subject: Fixed bug caused by postgresql failing to delete a savepoint when you create a new one with the same name. Symptom was running out of shared memory in postgres because there were thousands of savepoints. --- weblog-model.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/weblog-model.lua b/weblog-model.lua index f5f339c..8db7490 100644 --- a/weblog-model.lua +++ b/weblog-model.lua @@ -887,6 +887,8 @@ local function importlogfile(source, cookiesfile, file, parselog_func, importlog else con:execute("START TRANSACTION") end + else + assert(con:execute("RELEASE SAVEPOINT before_line")) end end con:execute("COMMIT") -- cgit v1.2.3