X-Original-To: pgsql-performance-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id B77199FB29B for ; Fri, 11 Aug 2006 01:18:58 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 20214-04 for ; Fri, 11 Aug 2006 01:18:55 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.190]) by postgresql.org (Postfix) with ESMTP id 428CE9FB271 for ; Fri, 11 Aug 2006 01:18:54 -0300 (ADT) Received: by nf-out-0910.google.com with SMTP id n28so871735nfc for ; Thu, 10 Aug 2006 21:18:53 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=rc5SCZIm3WvWabZBFdz4Ju1Y2rFCCoe8kF9erE/ZyOoHWS1D2bHRWk59xhNbYpn4Axa+uB+2ND6EhVhlh7LHbJpeDSRYd34eqtv+6nSG4xDqtwVnroE9bsISx6KhDuFzbEtemRLoLOC3Y91+o4TVKzFr/YVHLKBCvZIx9v6Pvww= Received: by 10.78.116.19 with SMTP id o19mr1998604huc; Thu, 10 Aug 2006 21:18:53 -0700 (PDT) Received: by 10.78.158.10 with HTTP; Thu, 10 Aug 2006 21:18:53 -0700 (PDT) Message-ID: Date: Thu, 10 Aug 2006 22:18:53 -0600 From: "Carl Youngblood" To: "Richard Huxton" Subject: Re: Beginner optimization questions, esp. regarding Tsearch2 Cc: pgsql-performance@postgresql.org In-Reply-To: <44DAFB2B.4070307@archonet.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <44DAFB2B.4070307@archonet.com> X-Google-Sender-Auth: 6a1d3f29f71d4abc X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.199 tagged_above=0 required=5 tests=AWL, DNS_FROM_RFC_ABUSE, SPF_PASS X-Spam-Level: X-Archive-Number: 200608/200 X-Sequence-Number: 20385 Thanks a lot for the advice Richard. I will try those things out and report back to the list. Carl On 8/10/06, Richard Huxton wrote: > From your figures, you're allocating about 64MB to work_mem, which is > per sort. So, a complex query could use several times that amount. If > you don't have many concurrent queries that might be what you want. > > Also, you've allocated 1GB to your shared_buffers which is more than I'd > use as a starting point. > > You've only mentioned one main table with 100,000 rows, so presumably > you're going to cache the entire DB in RAM. So, you'll want to increase > effective_cache_size and reduce random_page_cost.