Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 0B14D6504D7 for ; Tue, 11 Nov 2008 16:45:27 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 39925-05 for ; Tue, 11 Nov 2008 16:45:20 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id AECC56504D6 for ; Tue, 11 Nov 2008 16:45:20 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id mABKjFHt012245; Tue, 11 Nov 2008 15:45:16 -0500 (EST) To: "Andrus" cc: pgsql-performance@postgresql.org Subject: Re: Using index for IS NULL query In-reply-to: References: Comments: In-reply-to "Andrus" message dated "Tue, 11 Nov 2008 21:55:55 +0200" Date: Tue, 11 Nov 2008 15:45:15 -0500 Message-ID: <12244.1226436315@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200811/78 X-Sequence-Number: 31809 "Andrus" writes: > Index is not used for > is null > How to fix ? Update to something newer than 8.1 (specifically, you'll need 8.3). regards, tom lane