Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TMKLA-0008KY-5I for pgsql-bugs@postgresql.org; Thu, 11 Oct 2012 15:06:24 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TMKL8-0002W5-Et for pgsql-bugs@postgresql.org; Thu, 11 Oct 2012 15:06:23 +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 q9BF6LHl001135; Thu, 11 Oct 2012 11:06:21 -0400 (EDT) From: Tom Lane To: Heikki Linnakangas cc: Craig Ringer , =?UTF-8?B?Qm8gVGhvcmJqw7hybiBKZW5zZW4=?= , "pgsql-bugs@postgresql.org" Subject: Re: BUG #7597: exception 0xC0000005 In-reply-to: <261.1349965111@sss.pgh.pa.us> References: <5076B089.9060708@ringerc.id.au> <5076C2EF.7000303@vmware.com> <261.1349965111@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Thu, 11 Oct 2012 10:18:31 -0400" Date: Thu, 11 Oct 2012 11:06:21 -0400 Message-ID: <1134.1349967981@sss.pgh.pa.us> X-Pg-Spam-Score: -4.0 (----) X-Archive-Number: 201210/89 X-Sequence-Number: 34389 I wrote: > I see it too. I think the crash probably only occurs on a 32-bit build > (or one where you've disabled int8-pass-by-value anyway). Looks like > something's confused about cross-data-type comparisons --- this is an > int4 vs int8 comparison, so it shouldn't be ending up at int8eq. Argh ... the reason we're ending up at int8eq is that findPartialMatch is using the wrong set of equality functions. hashtable->cur_eq_funcs correctly references int8eq, but what we want to be using is the SubPlanState's cur_eq_funcs. Amazing it took this long for anybody to notice, because that's been wrong a long time. regards, tom lane