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 1hSmmU-0004Zq-D7 for pgsql-general@arkaria.postgresql.org; Mon, 20 May 2019 18:13:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hSmmT-0003OQ-7h for pgsql-general@arkaria.postgresql.org; Mon, 20 May 2019 18:13:01 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hSmmS-0003OJ-Uk for pgsql-general@lists.postgresql.org; Mon, 20 May 2019 18:13:00 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hSmmQ-0004dI-Pg for pgsql-general@lists.postgresql.org; Mon, 20 May 2019 18:13:00 +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 x4KICuLr024635; Mon, 20 May 2019 14:12:56 -0400 From: Tom Lane To: Will Hartung cc: pgsql-general@lists.postgresql.org Subject: Re: Loading table with indexed jsonb field is stalling In-reply-to: <90835D2B-1FBA-4F26-8157-7C831C24B266@gmail.com> References: <20505.1558202555@sss.pgh.pa.us> <90835D2B-1FBA-4F26-8157-7C831C24B266@gmail.com> Comments: In-reply-to Will Hartung message dated "Mon, 20 May 2019 11:05:35 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <24633.1558375976.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Mon, 20 May 2019 14:12:56 -0400 Message-ID: <24634.1558375976@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Will Hartung writes: >> On May 18, 2019, at 11:02 AM, Tom Lane wrote: >> In addition to the questions about what PG version you're using, is >> the backend process that's doing the load actually consuming CPU time, >> or is it just sitting? > It’s consuming both CPU and disk space. Hmm, so not a deadlock (plus you're running a version that has that bug fixed). It sounds like you might have hit an actual bug, perhaps one that causes it to endlessly re-split an index page, or something along that line. But it's going to be hard to find the cause without a test case. I don't suppose you can anonymize your data to the point where you'd have a publishable test case? regards, tom lane