X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 6177514B2825 for ; Mon, 9 Aug 2004 11:47:01 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 43763-03 for ; Mon, 9 Aug 2004 14:46:54 +0000 (GMT) Received: from frodo.hserus.net (frodo.hserus.net [204.74.68.40]) by svr1.postgresql.org (Postfix) with ESMTP id 14CC714B2800 for ; Mon, 9 Aug 2004 11:46:52 -0300 (ADT) Received: from [203.199.147.2] (port=42122 helo=ps0499.intranet.persistent.co.in) by frodo.hserus.net with asmtp (Cipher TLSv1:RC4-MD5:128) (Exim 4.41 #0) id 1BuBQM-000CMi-Ak by authid with plain; Mon, 09 Aug 2004 20:16:54 +0530 From: Shridhar Daithankar To: Paul Serby Subject: Re: The black art of postgresql.conf tweaking Date: Mon, 9 Aug 2004 20:16:47 +0530 User-Agent: KMail/1.6.2 Cc: pgsql-performance@postgresql.org References: <4110DA83.7020505@clockltd.com> <411789F1.6020305@clockltd.com> In-Reply-To: <411789F1.6020305@clockltd.com> MIME-Version: 1.0 Content-Disposition: inline Organization: Persistent Systems Pvt. Ltd. Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200408092016.47304.shridhar@frodo.hserus.net> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200408/111 X-Sequence-Number: 7747 On Monday 09 Aug 2004 7:58 pm, Paul Serby wrote: > I've not maxed out the connections since making the changes, but I'm > still not convinced everything is running as well as it could be. I've > got some big result sets that need sorting and I'm sure I could spare a > bit more sort memory. You could set the sort mem for that connection before issuing the query. i.e. # set sort_mem=20000; # select * ....; And reset it back. Setting it globally is not that good. If you do it selectively, that would tune it as per your needs.. > Where does everyone get there information about the settings? I still > can't find anything that helps explain each of the settings and how you > determine there optimal settings. http://www.varlena.com/varlena/GeneralBits/Tidbits/annotated_conf_e.html http://www.varlena.com/varlena/GeneralBits/Tidbits/perf.html HTH Shridhar