X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 23CA6D1B4E3 for ; Tue, 14 Oct 2003 19:37:37 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 75970-01 for ; Tue, 14 Oct 2003 16:37:06 -0300 (ADT) Received: from bob.samurai.com (bob.samurai.com [205.207.28.75]) by svr1.postgresql.org (Postfix) with ESMTP id 1F8DBD1B510 for ; Tue, 14 Oct 2003 16:37:05 -0300 (ADT) Received: from 6-allhosts (d226-85-166.home.cgocable.net [24.226.85.166]) by bob.samurai.com (Postfix) with ESMTP id E82031E2E; Tue, 14 Oct 2003 15:37:05 -0400 (EDT) Subject: Re: Any issues with my tuning... From: Neil Conway To: David Griffiths Cc: PostgreSQL Performance In-Reply-To: <039801c391c2$4b83d600$6501a8c0@griffiths2> References: <039801c391c2$4b83d600$6501a8c0@griffiths2> Content-Type: text/plain Message-Id: <1066160224.28992.3.camel@tokyo> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Tue, 14 Oct 2003 15:37:04 -0400 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/467 X-Sequence-Number: 4215 On Mon, 2003-10-13 at 15:43, David Griffiths wrote: > Here are part of the contents of my sysctl.conf file (note that I've > played with values as low as 600000 with no difference) > kernel.shmmax=1400000000 > kernel.shmall=1400000000 This is only a system-wide limit -- it either allows the shared memory allocation to proceed, or it does not. Changing it will have no other effect on the performance of PostgreSQL. > -> Index Scan using comm_ent_usr_acc_id_i on > commercial_entity ce (cost=0.00..4787.69 rows=78834 width=24) (actual > time=0.02..55.64 rows=7991 loops=1) Interesting that we get this row count estimate so completely wrong (although it may or may not have anything to do with the actual performance problem you're running into). Have you run ANALYZE on this table recently? If so, does increasing this column's statistics target (using ALTER TABLE ... ALTER COLUMN ... SET STATISTICS) improve the row count estimate? -Neil