Re: BUG #17064: Parallel VACUUM operations cause the error "global/pg_filenode.map contains incorrect checksum"
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Michael Paquier <michael@paquier.xyz>
Cc: Thomas Munro <thomas.munro@gmail.com>,
Heikki Linnakangas <hlinnaka@iki.fi>,
Alexander Lakhin <exclusion@gmail.com>,
PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>
Date: 2021-06-23T00:41:19Z
Lists: pgsql-bugs
Michael Paquier <michael@paquier.xyz> writes: > On Tue, Jun 22, 2021 at 10:11:06AM -0400, Tom Lane wrote: >> Shouldn't we instead file a kernel bug report? I seem to recall that >> POSIX guarantees atomicity of these things up to some operation size. >> Or is that just for pipe I/O? > Even if this is recognized as a bug report, it seems to me that we'd > better cope with an extra lock for instances that may run into this > issue anyway in the future, no? Just to be on the safe side. Based on the evidence at hand, we can't really say whether the writes are non-atomic. If that's the case then we have much worse problems than just needing to add a lock. Thus, I think we need to get some kernel people involved. regards, tom lane
Commits
-
Another fix to relmapper race condition.
- 5956795cb5be 9.6.23 landed
- fbbc48995d05 10.18 landed
- eb3bd243a245 11.13 landed
- 8b01a403c5cc 12.8 landed
- 6fb377e5f74b 13.4 landed
- 9b8ed0f52bff 14.0 landed
-
Prevent race condition while reading relmapper file.
- 85ae8ccb2fb3 9.6.23 landed
- a5eacd86b715 10.18 landed
- c78bb32c19fe 11.13 landed
- caac1965077f 12.8 landed
- 2a0ab13f8dd1 13.4 landed
- b6d8d2073f22 14.0 landed