Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iyl2V-00078w-Cv for pgsql-general@arkaria.postgresql.org; Mon, 03 Feb 2020 23:21:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iyl2U-0001RO-6N for pgsql-general@arkaria.postgresql.org; Mon, 03 Feb 2020 23:21:58 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iyl2T-0001RH-Q2 for pgsql-general@lists.postgresql.org; Mon, 03 Feb 2020 23:21:57 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iyl2N-0004hX-E3 for pgsql-general@postgresql.org; Mon, 03 Feb 2020 23:21:56 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id 013NLk53000824; Mon, 3 Feb 2020 18:21:46 -0500 From: Tom Lane To: Adrian Klaver cc: Doug Roberts , pgsql-general Subject: Re: Postgres Crashing In-reply-to: References: Comments: In-reply-to Adrian Klaver message dated "Mon, 03 Feb 2020 14:34:46 -0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <822.1580772106.1@sss.pgh.pa.us> Date: Mon, 03 Feb 2020 18:21:46 -0500 Message-ID: <823.1580772106@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Adrian Klaver writes: > Please reply to list also. > On 2/3/20 2:18 PM, Doug Roberts wrote: >> Here is what the reset recirc function is doing. >> ... >> UPDATE containers >> ... > So how did containers_reset_recirc() come to clash with > containers_add_update()? If this is PG 12.0 or 12.1, a likely theory is that this is an EvalPlanQual bug (which'd be triggered during concurrent updates of the same row in the table, so that squares with the observation that locking the table prevents it). The known bugs in that area require either before-row-update triggers on the table, or child tables (either partitioning or traditional inheritance). So I wonder what the schema of table "containers" looks like. Or you could have hit some new bug ... but there's not enough info here to diagnose. regards, tom lane