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 CE2F3329E64 for ; Fri, 10 Sep 2004 23:01:27 +0100 (BST) 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 28917-06 for ; Fri, 10 Sep 2004 22:01:20 +0000 (GMT) Received: from mproxy.gmail.com (rproxy.gmail.com [64.233.170.197]) by svr1.postgresql.org (Postfix) with ESMTP id 4F86D329E58 for ; Fri, 10 Sep 2004 23:01:21 +0100 (BST) Received: by mproxy.gmail.com with SMTP id 73so553013rnk for ; Fri, 10 Sep 2004 15:01:21 -0700 (PDT) Received: by 10.38.102.34 with SMTP id z34mr86115rnb; Fri, 10 Sep 2004 15:01:21 -0700 (PDT) Received: by 10.38.181.20 with HTTP; Fri, 10 Sep 2004 15:01:21 -0700 (PDT) Message-ID: Date: Fri, 10 Sep 2004 16:01:21 -0600 From: Joey Smith Reply-To: Joey Smith To: josh@agliodbs.com Subject: Re: Interesting performance behaviour Cc: pgsql-performance@postgresql.org In-Reply-To: <200409101446.53309.josh@agliodbs.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <200409101446.53309.josh@agliodbs.com> 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: 200409/65 X-Sequence-Number: 8193 > > shared_buffers = 1000 > > sort_mem = 1024 > > effective_cache_size = 1000 > > effective_cache_size should be much higher, like 3/4 of your available RAM. > This is probably the essence of your planner problem; the planner thinks you > have no RAM. I set effective_cache_size to 64000 on a machine with 2GB of physical RAM, and the behaviour is exactly the same.