Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 2FAEE9FBC43 for ; Tue, 15 May 2007 12:22:22 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 40351-02 for ; Tue, 15 May 2007 12:22:18 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.182]) by postgresql.org (Postfix) with ESMTP id 2F4DA9FB689 for ; Tue, 15 May 2007 12:22:18 -0300 (ADT) Received: by py-out-1112.google.com with SMTP id a73so156277pye for ; Tue, 15 May 2007 08:22:17 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=GLeezc9cMBG+fECdS/JKq3ZxyZmUfU1dyWR8r5DYiw37x6+Gfa4nL6jc/PeUR7MYCgfGCr3lPMKrGRTMwqMo5sA4+k8WS4G2V/8GA42MrwhijNE+GczpFEiqa+cHXDb+OK+LIM/A6xBX3KGb+8rJx2GSgRf4cL1N9Qb8QltvdTg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=ZThn438cRg1us0syTOk+bncW2VZXfFVJ7ClbSZdP+JbEFqsts/Tfu85GDTfhS/0o3YOR+igJ2P3x0bdPTVBmCKtFwxFH/INMIhghCr9AktP91NZq9HTPyb4OKyJ6N1HNgLt+tmKbi3tntrJfaptGnVnl+9FKbMBYeuw2LkhNloE= Received: by 10.65.196.2 with SMTP id y2mr1078414qbp.1179242537254; Tue, 15 May 2007 08:22:17 -0700 (PDT) Received: by 10.65.177.20 with HTTP; Tue, 15 May 2007 08:22:17 -0700 (PDT) Message-ID: <88daf38c0705150822r4de09d80u6cc32d76c96eee47@mail.gmail.com> Date: Tue, 15 May 2007 17:22:17 +0200 From: "Alexander Staubo" To: "Jason Pinnix" Subject: Re: bitmap index and IS NULL predicate Cc: pgsql-performance@postgresql.org In-Reply-To: <83589.1406.qm@web57312.mail.re1.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <83589.1406.qm@web57312.mail.re1.yahoo.com> X-Google-Sender-Auth: 25d9d6b04643fcf6 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200705/269 X-Sequence-Number: 24659 On 5/15/07, Jason Pinnix wrote: > Does the bitmap > index not store a bit vector for the NULL value (i.e. a bit vector that > contains a 1 for each row with a NULL value and 0 for other rows) ? You should be able to do this with a conditional index: create index ... (col) where col is null; Alexander.