From: Tom Lane <tgl@sss.pgh.pa.us>
To: Peter Geoghegan <pg@bowt.ie>
Cc: Alexander Korotkov <a.korotkov@postgrespro.ru>
Cc: Teodor Sigaev <teodor@sigaev.ru>
Cc: pgsql-committers <pgsql-committers@lists.postgresql.org>
Subject: Re: pgsql: Skip full index scan during cleanup of B-tree indexes when possi
Date: Wed, 04 Apr 2018 23:28:20 -0400
Message-ID: <8440.1522898900@sss.pgh.pa.us> (raw)
In-Reply-To: <CAH2-WznsF-RSG81NH=diNmB53EyyTUBG1CcOsMhN2L1C16RWhg@mail.gmail.com>
References: <E1f3lIH-0005Cn-GV@gemulon.postgresql.org>
<CAPpHfdvWs3Wf3L=ZOqO29_NPtpsy=hzPMQcK1_=OJ-hXKwNQHw@mail.gmail.com>
<CAH2-WzkPyNWJ4c6LPto5ePnrJ6Kcwq_V0G7Wx9Wn54jpvg=W5g@mail.gmail.com>
<2155.1522889894@sss.pgh.pa.us>
<CAH2-WznsF-RSG81NH=diNmB53EyyTUBG1CcOsMhN2L1C16RWhg@mail.gmail.com>
Peter Geoghegan <pg@bowt.ie> writes:
>>> TRAP: FailedAssertion("!(metad->btm_version == 3)", File:
>>> "/home/pg/postgresql/root/build/../source/src/backend/access/nbtree/nbtpage.c",
>>> Line: 619)
>> Hm, buildfarm's not complaining --- what's the test case?
> This was discovered while testing/reviewing the latest version of the
> INCLUDE covering indexes patch. It now seems to be unrelated.
Oh, wait ... I wonder if you saw that because you were running a new
backend without having re-initdb'd? Once you had re-initdb'd, then
of course there would be no old-format btree indexes anywhere. But
if you hadn't, then anyplace that was not prepared to cope with the
old header format would complain about pre-existing indexes.
In short, this sounds like a place that did not get the memo about
how to cope with un-upgraded indexes.
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-committers@postgresql.org
Cc: tgl@sss.pgh.pa.us, pg@bowt.ie, a.korotkov@postgrespro.ru, teodor@sigaev.ru
Subject: Re: pgsql: Skip full index scan during cleanup of B-tree indexes when possi
In-Reply-To: <8440.1522898900@sss.pgh.pa.us>
References: <E1f3lIH-0005Cn-GV@gemulon.postgresql.org> <CAPpHfdvWs3Wf3L=ZOqO29_NPtpsy=hzPMQcK1_=OJ-hXKwNQHw@mail.gmail.com> <CAH2-WzkPyNWJ4c6LPto5ePnrJ6Kcwq_V0G7Wx9Wn54jpvg=W5g@mail.gmail.com> <2155.1522889894@sss.pgh.pa.us> <CAH2-WznsF-RSG81NH=diNmB53EyyTUBG1CcOsMhN2L1C16RWhg@mail.gmail.com> <8440.1522898900@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