X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id C2C31D87EA for ; Thu, 1 Sep 2005 17:25:33 -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 13142-06 for ; Thu, 1 Sep 2005 20:25:29 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id E7B6ED8534 for ; Thu, 1 Sep 2005 17:25:28 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j81KPTj7006093; Thu, 1 Sep 2005 16:25:29 -0400 (EDT) To: Ron Cc: Matthew Sackman , pgsql-performance@postgresql.org Subject: Re: Massive performance issues In-reply-to: <6.2.3.4.0.20050901145054.021b1678@pop.earthlink.net> References: <20050901174231.GE23970@pongo.lshift.net> <6.2.3.4.0.20050901145054.021b1678@pop.earthlink.net> Comments: In-reply-to Ron message dated "Thu, 01 Sep 2005 15:43:01 -0400" Date: Thu, 01 Sep 2005 16:25:29 -0400 Message-ID: <6092.1125606329@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 required=5 tests=[AWL=0.006] X-Spam-Level: X-Archive-Number: 200509/22 X-Sequence-Number: 14330 Ron writes: > ... Your target is to have each row take <= 512B. Ron, are you assuming that the varchar fields are blank-padded or something? I think it's highly unlikely that he's got more than a couple hundred bytes per row right now --- at least if the data is what it sounds like. The upthread comment about strcoll() set off some alarm bells in my head. If the database wasn't initdb'd in C locale already, try making it so. Also, use a single-byte encoding if you can (LatinX is fine, Unicode not). > Upgrade pg to 8.0.3 and make sure you have enough RAM for your real > day to day load. Newer PG definitely better. Some attention to the configuration parameters might also be called for. I fear though that these things are probably just chipping at the margins ... regards, tom lane