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 17186DB52D for ; Mon, 31 Oct 2005 15:52:49 -0400 (AST) 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 78053-02 for ; Mon, 31 Oct 2005 19:52:46 +0000 (GMT) Received: from mail.envyfinancial.com (unknown [206.248.142.186]) by svr1.postgresql.org (Postfix) with ESMTP id 4EF85DB565 for ; Mon, 31 Oct 2005 15:52:47 -0400 (AST) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.envyfinancial.com (Postfix) with ESMTP id CB5102343A; Mon, 31 Oct 2005 14:35:47 -0500 (EST) Received: from mail.envyfinancial.com ([127.0.0.1]) by localhost (mark.mielke.cc [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02757-08; Mon, 31 Oct 2005 14:35:47 -0500 (EST) Received: by mail.envyfinancial.com (Postfix, from userid 500) id 80D8A23436; Mon, 31 Oct 2005 14:35:47 -0500 (EST) Date: Mon, 31 Oct 2005 14:35:47 -0500 From: mark@mark.mielke.cc To: Merlin Moncure Cc: Kelly Burkhart , pgsql-performance@postgresql.org Subject: Re: 8.x index insert performance Message-ID: <20051031193547.GA3311@mark.mielke.cc> References: <6EE64EF3AB31D5448D0007DD34EEB3417DD725@Herge.rcsinc.local> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6EE64EF3AB31D5448D0007DD34EEB3417DD725@Herge.rcsinc.local> User-Agent: Mutt/1.4.2.1i X-Virus-Scanned: amavisd-new at mail.envyfinancial.com X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.375 required=5 tests=[AWL=-0.175, NO_REAL_NAME=0.55] X-Spam-Score: 0.375 X-Spam-Level: X-Archive-Number: 200510/477 X-Sequence-Number: 15245 On Mon, Oct 31, 2005 at 12:32:03PM -0500, Merlin Moncure wrote: > if that index is causing the problem, you may want to consider setting > up partial index to exclude null values. Hey all. Pardon my ignorance. :-) I've been trying to figure out whether null values are indexed or not from the documentation. I was under the impression, that null values are not stored in the index. Occassionally, though, I then see a suggestion such as the above, that seems to indicate to me that null values *are* stored in the index, allowing for the 'exclude null values' to have effect? Which is it? :-) Thanks, mark -- mark@mielke.cc / markm@ncf.ca / markm@nortel.com __________________________ . . _ ._ . . .__ . . ._. .__ . . . .__ | Neighbourhood Coder |\/| |_| |_| |/ |_ |\/| | |_ | |/ |_ | | | | | | \ | \ |__ . | | .|. |__ |__ | \ |__ | Ottawa, Ontario, Canada One ring to rule them all, one ring to find them, one ring to bring them all and in the darkness bind them... http://mark.mielke.cc/