Re: v12.0: segfault in reindex CONCURRENTLY - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: v12.0: segfault in reindex CONCURRENTLY
Date
Msg-id 20191015063547.GA2602@paquier.xyz
Whole thread Raw
In response to Re: v12.0: segfault in reindex CONCURRENTLY  (Michael Paquier <michael@paquier.xyz>)
Responses Re: v12.0: segfault in reindex CONCURRENTLY
List pgsql-hackers
On Mon, Oct 14, 2019 at 08:57:16AM +0900, Michael Paquier wrote:
> I need to think about that, but shouldn't we have a way to reproduce
> that case rather reliably with an isolation test?  The patch looks to
> good to me, these are also the two places I spotted yesterday after a
> quick lookup.  The only other caller is isTempNamespaceInUse() which
> does its thing correctly.

Actually, reindex-concurrently.spec stresses that, except that in
order to reproduce the failure we need to close the connection exactly
in the waiting loop before sending the progress report but after
looking at VirtualTransactionIdIsValid.  Using a debugger and a simple
checkpoint I can easily reproduce the crash, but we'd need more to
make that test case deterministic, like a termination with the correct
timing.

So, Alvaro, your patch looks good to me.  Could you apply it?
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Masahiko Sawada
Date:
Subject: Re: Transparent Data Encryption (TDE) and encrypted files
Next
From: Amit Kapila
Date:
Subject: Questions/Observations related to Gist vacuum