From: Tom Lane <tgl@sss.pgh.pa.us>
To: Kevin Grittner <kgrittn@gmail.com>
Cc: yancya@upec.jp, "pgsql-bugs@postgresql.org" <pgsql-bugs@postgresql.org>
Subject: Re: BUG #14169: Incorrect merge join result in 9.5
Date: Thu, 02 Jun 2016 14:09:16 -0400
Message-ID: <4417.1464890956@sss.pgh.pa.us> (raw)
In-Reply-To: <CACjxUsMH8TReUobME3S2BgqN9qifkSo18j8jfAQARn4GRcq9pg@mail.gmail.com>
References: <20160601065921.30388.33069@wrigleys.postgresql.org>
<13951.1464797452@sss.pgh.pa.us>
<CACjxUsMeM2QxgxZ62Xc9Oahjpey-3+0rkc4X=wSwvp32XoCW=g@mail.gmail.com>
<CACjxUsMH8TReUobME3S2BgqN9qifkSo18j8jfAQARn4GRcq9pg@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Kevin Grittner <kgrittn@gmail.com> writes:
> On Wed, Jun 1, 2016 at 11:15 AM, Kevin Grittner <kgrittn@gmail.com> wrote:
>> On Wed, Jun 1, 2016 at 11:10 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>>> In short: Kevin, you broke mark/restore. Please fix.
>> I'm on it.
> Fix pushed.
I confirm this fixes the submitted test case.
> Basically, I reverted an attempt to optimize repeated
> restores to the same page. I had a rather bad thinko there where I
> essentially assumed that it was also to the same mark, so advancing
> marks on the same page caused the bug. There's probably room to
> optimize that with more refined logic, but for now I just reverted
> the problem code.
Sounds reasonable. The comments in that removed hunk of code had made
me suspicious as heck the moment I saw them ...
> I reduced the test case supplied by the OP to something smaller
> which still failed the assertion without the patch, but am having
> trouble getting it to run in the regression test environment with a
> stable plan.
Best bet might be to use a temp table, so that autoanalyze won't touch it.
regards, tom lane
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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, kgrittn@gmail.com
Subject: Re: BUG #14169: Incorrect merge join result in 9.5
In-Reply-To: <4417.1464890956@sss.pgh.pa.us>
References: <20160601065921.30388.33069@wrigleys.postgresql.org> <13951.1464797452@sss.pgh.pa.us> <CACjxUsMeM2QxgxZ62Xc9Oahjpey-3+0rkc4X=wSwvp32XoCW=g@mail.gmail.com> <CACjxUsMH8TReUobME3S2BgqN9qifkSo18j8jfAQARn4GRcq9pg@mail.gmail.com> <4417.1464890956@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