Re: Issue in GIN fast-insert: XLogBeginInsert + Read/LockBuffer ordering

Michael Paquier <michael@paquier.xyz>

From: Michael Paquier <michael@paquier.xyz>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Zhang Mingli <zmlpostgres@gmail.com>, PostgreSQL Hackers <pgsql-hackers@postgresql.org>, Matthias van de Meent <boekewurm+postgres@gmail.com>
Date: 2022-10-13T01:24:46Z
Lists: pgsql-hackers
On Wed, Oct 12, 2022 at 08:54:34PM -0400, Tom Lane wrote:
> Don't we need to back-patch these fixes?

I guess I should, though I have finished by not doing due to the
unlikeliness of the problem, where we would need the combination of a
page eviction with an error in the critical section to force a PANIC,
or a crash before the WAL gets inserted.  Other opinions?
--
Michael

Commits

  1. Fix ordering issue with WAL operations in GIN fast insert path