Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 405D71337B8F for ; Sun, 5 Dec 2010 12:43:13 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 61205-03 for ; Sun, 5 Dec 2010 16:43:05 +0000 (UTC) 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 507E61337B99 for ; Sun, 5 Dec 2010 12:43:05 -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 oB5Gh0Tl026123; Sun, 5 Dec 2010 11:43:00 -0500 (EST) To: Andres Freund cc: pgsql-bugs@postgresql.org, Martin Atukunda Subject: Re: BUG #5784: CREATE INDEX USING GIN complains about array containing null values yet none exist In-reply-to: <201012051358.22813.andres@anarazel.de> References: <201012050650.oB56opvM090787@wwwmaster.postgresql.org> <201012051329.35665.andres@anarazel.de> <201012051358.22813.andres@anarazel.de> Comments: In-reply-to Andres Freund message dated "Sun, 05 Dec 2010 13:58:22 +0100" Date: Sun, 05 Dec 2010 11:42:59 -0500 Message-ID: <26122.1291567379@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201012/38 X-Sequence-Number: 28844 Andres Freund writes: >> On Sunday 05 December 2010 13:07:23 Martin Atukunda wrote: >>>> so, basically, the only way out of this would be to: I think the reason the given example fails is just that it's all being done in one transaction. If the null-containing row were known dead it wouldn't get indexed. So: commit. regards, tom lane