Re: BUG #17064: Parallel VACUUM operations cause the error "global/pg_filenode.map contains incorrect checksum"

Thomas Munro <thomas.munro@gmail.com>

From: Thomas Munro <thomas.munro@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Heikki Linnakangas <hlinnaka@iki.fi>, Alexander Lakhin <exclusion@gmail.com>, PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>
Date: 2021-06-23T02:29:56Z
Lists: pgsql-bugs

Attachments

On Wed, Jun 23, 2021 at 12:50 PM Thomas Munro <thomas.munro@gmail.com> wrote:
> repro

Here's a quick-and-dirty repro -- just touch test-file and then run
it.  It fails about 0.1% of its read loops on ext4, for me, but
outputs nothing on other file systems and OSes I tried (XFS, FBSD UFS,
APFS).  Seems a bit like there is a tendency for 64 byte (cache line?)
granularity in the mashed data it prints out.

Commits

  1. Another fix to relmapper race condition.

  2. Prevent race condition while reading relmapper file.