Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lvqxU-00086m-7D for pgsql-bugs@arkaria.postgresql.org; Wed, 23 Jun 2021 00:41:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lvqxT-0000jy-1O for pgsql-bugs@arkaria.postgresql.org; Wed, 23 Jun 2021 00:41:35 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lvqxS-0000jp-RC for pgsql-bugs@lists.postgresql.org; Wed, 23 Jun 2021 00:41:34 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lvqxQ-0000yS-OJ for pgsql-bugs@lists.postgresql.org; Wed, 23 Jun 2021 00:41:34 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 15N0fJl91944433; Tue, 22 Jun 2021 20:41:19 -0400 From: Tom Lane To: Michael Paquier cc: Thomas Munro , Heikki Linnakangas , Alexander Lakhin , PostgreSQL mailing lists Subject: Re: BUG #17064: Parallel VACUUM operations cause the error "global/pg_filenode.map contains incorrect checksum" In-reply-to: References: <17064-bb0d7904ef72add3@postgresql.org> <1715251.1624371066@sss.pgh.pa.us> Comments: In-reply-to Michael Paquier message dated "Wed, 23 Jun 2021 09:33:47 +0900" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1944431.1624408879.1@sss.pgh.pa.us> Date: Tue, 22 Jun 2021 20:41:19 -0400 Message-ID: <1944432.1624408879@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Michael Paquier 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