Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 91254174E98A for ; Fri, 24 Feb 2012 08:38:06 -0400 (AST) Received: from server.lerner.co.il ([69.55.231.200] helo=lerner.co.il) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1S0uPT-0006Tq-TY for pgsql-performance@postgresql.org; Fri, 24 Feb 2012 12:38:05 +0000 Received: by lerner.co.il (Postfix, from userid 1003) id 900985D643A; Fri, 24 Feb 2012 14:37:48 +0200 (IST) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on lerner.co.il X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=unavailable version=3.3.2 Received: from MacBookPro.local (bzq-219-236-80.pop.bezeqint.net [62.219.236.80]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: reuven) by lerner.co.il (Postfix) with ESMTPSA id B420F5D615A; Fri, 24 Feb 2012 14:37:33 +0200 (IST) Message-ID: <4F47848A.20800@lerner.co.il> Date: Fri, 24 Feb 2012 14:37:30 +0200 From: "Reuven M. Lerner" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 MIME-Version: 1.0 To: Samuel Gendler CC: Glyn Astill , "pgsql-performance@postgresql.org" Subject: Re: Very long deletion time on a 200 GB database References: <4F45FB55.1020600@lerner.co.il> <1329990620.15378.YahooMailNeo@web171403.mail.ir2.yahoo.com> <4F4730B4.2050602@lerner.co.il> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201202/196 X-Sequence-Number: 46368 Hi, everyone. Samuel wrote: > > What is work_mem set to? If all the other values were set so low, I'd > expect work_mem to also be small, which could be causing all kind of > disk activity when steps don't fit into a work_mem segment. I just checked, and work_mem is set to 30 MB. That seems a bit low to me, given the size of the database and the fact that we're doing so much sorting and subselecting. Am I right that we should push that up some more? Reuven -- Reuven M. Lerner -- Web development, consulting, and training Mobile: +972-54-496-8405 * US phone: 847-230-9795 Skype/AIM: reuvenlerner