Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id B9D279ED581 for ; Wed, 7 Dec 2011 12:08:54 -0400 (AST) Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RYK3A-0007f0-9I for pgsql-bugs@postgresql.org; Wed, 07 Dec 2011 16:08:53 +0000 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 pB7G8cLo019362; Wed, 7 Dec 2011 11:08:38 -0500 (EST) To: bricklen cc: nikolay.gorshkov@gmail.com, pgsql-bugs@postgresql.org Subject: Re: BUG #6330: Incorrect select results when using mutually exclusive conditions for nullable column with index In-reply-to: References: Comments: In-reply-to bricklen message dated "Wed, 07 Dec 2011 07:32:22 -0800" Date: Wed, 07 Dec 2011 11:08:37 -0500 Message-ID: <19361.1323274117@sss.pgh.pa.us> From: Tom Lane X-Pg-Spam-Score: -3.1 (---) X-Archive-Number: 201112/56 X-Sequence-Number: 31867 bricklen writes: > On Wed, Dec 7, 2011 at 5:42 AM, wrote: >> PostgreSQL version information: >> Result: PostgreSQL 9.0.4 on i486-pc-linux-gnu, compiled by GCC gcc-4.4.real >> (Ubuntu 4.4.3-4ubuntu5) 4.4.3, 32-bit > FWIW, I could not reproduce it on > PostgreSQL 9.0.5 on x86_64-unknown-linux-gnu, compiled by GCC gcc > (GCC) 4.1.2 20080704 (Red Hat 4.1.2-50), 64-bit Yeah, this is fixed as of 9.0.5: http://git.postgresql.org/gitweb/?p=postgresql.git&a=commitdiff&h=bbfcc7149 regards, tom lane