From: Tom Lane <tgl@sss.pgh.pa.us>
To: Heikki Linnakangas <hlinnakangas@vmware.com>
Cc: Craig Ringer <ringerc@ringerc.id.au>
Cc: Bo Thorbjørn Jensen <bo@budget123.dk>
Cc: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Subject: Re: BUG #7597: exception 0xC0000005
Date: Thu, 11 Oct 2012 11:06:21 -0400
Message-ID: <1134.1349967981@sss.pgh.pa.us> (raw)
In-Reply-To: <261.1349965111@sss.pgh.pa.us>
References: <E1TMFBU-00040R-S5@wrigleys.postgresql.org>
<AD7252BEFBCA3846A8D34ABCDA258D089BE418@EXMBX03.mailcloud.dk>
<5076B089.9060708@ringerc.id.au>
<5076C2EF.7000303@vmware.com>
<261.1349965111@sss.pgh.pa.us>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, hlinnakangas@vmware.com, ringerc@ringerc.id.au, bo@budget123.dk
Subject: Re: BUG #7597: exception 0xC0000005
In-Reply-To: <1134.1349967981@sss.pgh.pa.us>
References: <E1TMFBU-00040R-S5@wrigleys.postgresql.org> <AD7252BEFBCA3846A8D34ABCDA258D089BE418@EXMBX03.mailcloud.dk> <5076B089.9060708@ringerc.id.au> <5076C2EF.7000303@vmware.com> <261.1349965111@sss.pgh.pa.us> <1134.1349967981@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox