Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id C8B179FB857 for ; Tue, 20 Feb 2007 19:47:04 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-new, port 10024) with ESMTP id 40419-08 for ; Tue, 20 Feb 2007 19:46:51 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from globalrelay.com (mail1.globalrelay.com [204.92.49.200]) by postgresql.org (Postfix) with ESMTP id 0A37D9FB90C for ; Tue, 20 Feb 2007 19:47:00 -0400 (AST) X-Virus-Scanned: Scanned by GRC-AntiVirus Gateway X-GR-Acctd: YES Received: from [71.215.208.64] (HELO DaveEMachine) by globalrelay.com (CommuniGate Pro SMTP 4.2.3) with ESMTP id 129103155; Tue, 20 Feb 2007 15:46:58 -0800 From: "Dave Dutcher" To: "'Glenn Sullivan'" , Subject: Re: SELECT performance problem Date: Tue, 20 Feb 2007 17:46:56 -0600 Message-ID: <002701c75549$680881b0$8300a8c0@tridecap.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.6822 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 Thread-Index: AcdVSDIbWW1TMH24Rnij79rrdbCQdwAAOD/g In-Reply-To: <45DB8290.1020501@varianinc.com> Importance: Normal X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=0 required=5 tests=BAYES_50 X-Spam-Level: X-Archive-Number: 200702/204 X-Sequence-Number: 23258 Did you run ANALYZE on your data after importing it into 8.2.3? Is there an index on the seqfil column? If so, you should post the output of EXPLAIN ANALYZE from both systems if possible. > -----Original Message----- > From: pgsql-performance-owner@postgresql.org > [mailto:pgsql-performance-owner@postgresql.org] On Behalf Of > Glenn Sullivan > Sent: Tuesday, February 20, 2007 5:22 PM > To: pgsql-performance@postgresql.org > Subject: [PERFORM] SELECT performance problem > > > I am updating from 7.4.5 to 8.2.3. I have noticed a significant > slowdown in simple searches such as > "select filename from vnmr_data where seqfil = 'sems';" > This returns 12 rows out of 1 million items in the table. > On 7.4.5, this takes about 1.5 seconds. On 8.2.3, it is taking > about 9 seconds. > > I have played with different values of: > work_mem, temp_buffers, shared_buffers and effective_cache_size > and none of them make any difference. > > I am running on redhat Linux 4 64bit. > > Any ideas? > > Glenn > > ---------------------------(end of > broadcast)--------------------------- > TIP 1: if posting/reading through Usenet, please send an appropriate > subscribe-nomail command to majordomo@postgresql.org > so that your > message can get through to the mailing list cleanly