X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id EAF1BD1CA5F for ; Sun, 15 Feb 2004 04:52:15 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 12502-05 for ; Sun, 15 Feb 2004 00:52:20 -0400 (AST) Received: from relay01.kbs.net.au (relay01.kbs.net.au [203.220.32.149]) by svr1.postgresql.org (Postfix) with ESMTP id 17A3AD1C9FB for ; Sun, 15 Feb 2004 00:52:14 -0400 (AST) Received: from [203.221.247.244] (helo=familyhealth.com.au) by relay01.kbs.net.au with esmtp (Exim 3.36 #2) id 1AsEFu-0002aj-00; Sun, 15 Feb 2004 15:51:47 +1100 Message-ID: <402EFADD.4040100@familyhealth.com.au> Date: Sun, 15 Feb 2004 12:51:41 +0800 From: Christopher Kings-Lynne User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Marinos J. Yannikos" Cc: josh@agliodbs.com, pgsql-performance@postgresql.org Subject: Re: optimization ideas for frequent, large(ish) updates References: <402C213A.4030105@geizhals.at> <200402122228.41680.josh@agliodbs.com> <402ED348.7000800@geizhals.at> In-Reply-To: <402ED348.7000800@geizhals.at> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200402/165 X-Sequence-Number: 5689 > 800MB is correct, yes... There are usually only 10-30 postgres processes > active (imagine 5-10 people working on the web front-end while cron > jobs access the db occasionally). Very few queries can use such large > amounts of memory for sorting, but they do exist. But remember that means that if you have 4 people doign 2 sorts each at the same time, postgres will use 6.4GB RAM maximum. The sort_mem parameter means that if a sort is larger than the max, it will be done in disk swap. Chris