X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id AE64DD7253 for ; Mon, 22 Aug 2005 16:09:51 -0300 (ADT) 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 47884-09 for ; Mon, 22 Aug 2005 19:09:46 +0000 (GMT) Received: from davinci.ethosmedia.com (server227.ethosmedia.com [209.128.84.227]) by svr1.postgresql.org (Postfix) with ESMTP id 0C922D70A8 for ; Mon, 22 Aug 2005 16:09:45 -0300 (ADT) X-EthosMedia-Virus-Scanned: no infections found Received: from [67.103.45.218] (account josh@agliodbs.com HELO [10.0.0.38]) by davinci.ethosmedia.com (CommuniGate Pro SMTP 4.1.8) with ESMTP id 7907752; Mon, 22 Aug 2005 12:12:02 -0700 From: Josh Berkus Reply-To: josh@agliodbs.com Organization: Aglio Database Solutions To: pgsql-performance@postgresql.org Subject: Re: MemoryContextSwitchTo during table scan? Date: Mon, 22 Aug 2005 12:12:56 -0700 User-Agent: KMail/1.8 Cc: "Jignesh Shah" References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200508221212.57047.josh@agliodbs.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 required=5 tests=[AWL=0.000] X-Spam-Level: X-Archive-Number: 200508/326 X-Sequence-Number: 14073 Jignesh, > Also is there any way to optimize LockBuffer? Yes, test on 8.1. The buffer manager was re-written for 8.1. You should see a decrease in both LockBuffer and context switch activity. -- --Josh Josh Berkus Aglio Database Solutions San Francisco