Re: Re: PANIC: invalid index offnum: 186 when processing BRIN indexes in VACUUM
Tomas Vondra <tomas.vondra@2ndquadrant.com>
From: Tomas Vondra <tomas.vondra@2ndquadrant.com>
To: Tom Lane <tgl@sss.pgh.pa.us>, Michael Paquier <michael.paquier@gmail.com>
Cc: Alvaro Herrera <alvherre@alvh.no-ip.org>,
PostgreSQL mailing lists <pgsql-hackers@postgresql.org>
Date: 2017-10-30T20:43:46Z
Lists: pgsql-hackers
On 10/30/2017 09:03 PM, Tom Lane wrote: > Michael Paquier <michael.paquier@gmail.com> writes: >> b1328d78f is close enough, but per what I see that's actually not >> true. I have been able to reproduce the problem, which shows up within >> a window of 2-4 minutes. Still sometimes it can take way longer, and I >> spotted one test where it took 15 minutes to show up... So, bisecting >> with a test that looks for core files for 20 minutes, I am seeing that >> the following commit is actually at fault: > >> commit 24992c6db9fd40f342db1f22747ec9e56483796d >> Author: Tom Lane <tgl@sss.pgh.pa.us> >> Date: Fri Sep 9 19:00:59 2016 -0400 > >> Rewrite PageIndexDeleteNoCompact into a form that only deletes 1 tuple. > > [ scratches head ... ] Not sure how that could've introduced any > problems? Will look. > Not sure, but I can confirm Michael's findings - I've been unable to reproduce the issue on 1a4be103a5 even after 20 minutes, and on 24992c6db9 it failed after only 2. regards -- Tomas Vondra http://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
Commits
-
Fix BRIN summarization concurrent with extension
- ec42a1dcb30d 11.0 landed
- cf0612aa2c8f 9.5.10 landed
- bd8e2b3cf4cf 9.6.6 landed
- 37a856567c04 10.1 landed
-
Fix corner-case errors in brin_doupdate().
- 62a16572d571 11.0 landed
- a43cd427e703 9.6.6 landed
- 43276abc6f7e 9.5.10 landed
- 97ba7b8c87e1 10.1 landed
-
Rewrite PageIndexDeleteNoCompact into a form that only deletes 1 tuple.
- 24992c6db9fd 10.0 cited
-
Invent PageIndexTupleOverwrite, and teach BRIN and GiST to use it.
- b1328d78f88c 10.0 cited
-
Close some holes in BRIN page assignment
- ccc4c074994d 9.6.0 cited