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 1lME7A-0001PB-LF for pgsql-hackers@arkaria.postgresql.org; Tue, 16 Mar 2021 18:08:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lME79-000429-Iw for pgsql-hackers@arkaria.postgresql.org; Tue, 16 Mar 2021 18:08:19 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lME79-000422-Ca for pgsql-hackers@lists.postgresql.org; Tue, 16 Mar 2021 18:08:19 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lME73-0003to-CW for pgsql-hackers@lists.postgresql.org; Tue, 16 Mar 2021 18:08:18 +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 12GI8BeO3377080; Tue, 16 Mar 2021 14:08:11 -0400 From: Tom Lane To: Peter Geoghegan cc: Avinash Kumar , Thomas Munro , PostgreSQL Developers Subject: Re: Postgres crashes at memcopy() after upgrade to PG 13. In-reply-to: References: Comments: In-reply-to Peter Geoghegan message dated "Tue, 16 Mar 2021 09:44:08 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3377077.1615918091.1@sss.pgh.pa.us> Date: Tue, 16 Mar 2021 14:08:11 -0400 Message-ID: <3377078.1615918091@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Peter Geoghegan writes: > ... It's hard to believe that the problem is > squarely with _bt_swap_posting(). IIUC, the problem is seen on a replica server but not the primary? In that case, my thoughts would run towards a bug in WAL log creation or replay, causing the index contents to be different/wrong on the replica. regards, tom lane