Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TDi5w-0001aR-8Q for pgsql-bugs@postgresql.org; Mon, 17 Sep 2012 20:39:04 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TDi5s-0001Pm-Rj for pgsql-bugs@postgresql.org; Mon, 17 Sep 2012 20:39:03 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id q8HKcxgs022087; Mon, 17 Sep 2012 16:38:59 -0400 (EDT) From: Tom Lane To: tom@tomforb.es cc: pgsql-bugs@postgresql.org Subject: Re: BUG #7550: NULL result when coercing a subquery result into an array In-reply-to: References: Comments: In-reply-to tom@tomforb.es message dated "Mon, 17 Sep 2012 19:32:30 -0000" Date: Mon, 17 Sep 2012 16:38:59 -0400 Message-ID: <22086.1347914339@sss.pgh.pa.us> X-Pg-Spam-Score: -2.4 (--) X-Archive-Number: 201209/172 X-Sequence-Number: 34167 tom@tomforb.es writes: > I have two queries: > http://pgsql.privatepaste.com/7d1473defa > http://pgsql.privatepaste.com/85e1d43b7a > The first query returns NULL and the second one returns an int[] with 623 > elements in it. The only difference between the two queries is the last > string - 'J. P. Bickella' returns NULL and 'J. P. Bickell' returns an > int[]. That's ... bizarre. I assume you were running this same query without issues on earlier PG versions? Which? > If needed I can host the database this query is executing on for people to > download upon request, but it is 1.2gb in size. I suspect that you could reproduce the problem with a much smaller extract from the table, perhaps a couple thousand rows. Please try to create a self-contained test case along those lines --- it'll be easier all around than dealing with 1GB of data. regards, tom lane