Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Tfxs0-0006gy-Ot for pgsql-performance@arkaria.postgresql.org; Tue, 04 Dec 2012 19:09:28 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1Tfxs0-0006tr-6u for pgsql-performance@arkaria.postgresql.org; Tue, 04 Dec 2012 19:09:28 +0000 Received: from magus.postgresql.org ([87.238.57.229]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Tfxrz-0006tm-HO for pgsql-performance@postgresql.org; Tue, 04 Dec 2012 19:09:27 +0000 Received: from mailout-us.gmx.com ([74.208.5.67]) by magus.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1Tfxrx-0003Mh-Cc for pgsql-performance@postgresql.org; Tue, 04 Dec 2012 19:09:27 +0000 Received: (qmail 32334 invoked by uid 0); 4 Dec 2012 19:09:23 -0000 Received: from 76.255.19.161 by rms-us016 with HTTP Content-Type: text/plain; charset="utf-8" Date: Tue, 04 Dec 2012 14:09:20 -0500 From: "Kevin Grittner" Message-ID: <20121204190920.142860@gmx.com> MIME-Version: 1.0 Subject: Re: Slow query: bitmap scan troubles To: postgresql@foo.me.uk,"postgres performance list" X-Authenticated: #138763884 X-Flags: 0001 X-Mailer: GMX.com Web Mailer x-registered: 0 Content-Transfer-Encoding: 8bit X-GMX-UID: Ny/McKpW3zOlOQ09Lnwhghp+IGRvb0Ba X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-performance Precedence: bulk Sender: pgsql-performance-owner@postgresql.org postgresql@foo.me.uk wrote: > Ah okay, thanks. I knew I could set various things but not > effective_work_mem (I tried reloading the edited config file but > it didn't seem to pick it up) Check the server log, maybe there was a typo or capitalization error. To test on a single connection you should be able to just run: SET effective_cache_size = '88GB'; By the way, one other setting that I have found a need to adjust to get good plans is cpu_tuple_cost. In my experience, better plans are chosen when this is in the 0.03 to 0.05 range than with the default of 0.01. -Kevin -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance