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 1hSmIQ-0002qu-3o for pgsql-general@arkaria.postgresql.org; Mon, 20 May 2019 17:41:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hSmIN-0003ZP-Ou for pgsql-general@arkaria.postgresql.org; Mon, 20 May 2019 17:41:55 +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 1hSmIM-0003OI-2j for pgsql-general@lists.postgresql.org; Mon, 20 May 2019 17:41:55 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hSmII-0003xM-AV for pgsql-general@postgresql.org; Mon, 20 May 2019 17:41:53 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 5F79F24574; Mon, 20 May 2019 13:41:47 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Mon, 20 May 2019 13:41:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:cc:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm3; bh=D uddv9ECaChzTAnr/S96rij2xEMFu2asRfnB7T4xmB4=; b=io+6Ql/AtQEn74n7M 02KFrhNeiwQOLlQc7OESqCiTumyP+Y3RytTjN2Bk6Mw4RFrsjjaFH+2VZlI++gX3 RCWzIB3dgtgGL+/kbdukGmONWnONhmpRpRmdZcQNSGSfwc5nSmzpk+2MMDeZmyfq FTYgl1dcJ98SgLAv2Ps7gQlu79LuAXfDT3PfjLFmf1CGqB5I00g55lgwUaS/JxnP PG96PsQd/WCzlC67ofIauoPR+JOj/zOohxWnfOjBFIws+4zsQ+9GmG5pSf0xKn0y Q53DYDGEU5Wh45NAAAVP0Jc069tUumpCO/38lrtyDmfOjHxP/1o/HuxgiM/21hbi WXURQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=Duddv9ECaChzTAnr/S96rij2xEMFu2asRfnB7T4xm B4=; b=ZVSd9dpB6OJez2Mfi2hivrkb1EvCiFWu+cdiC+g/rzOZQAU8bCV/bzK/y Qh8tsnfiw/nVzTz1QS8slBbsddF4I8fMMctbmK7Nr5pokWPmwvThtTxVZCeI09gC 2hc/Ub3cNGG9KNgwwAfE/NqsWp1W2XRsRdAIoM37GJAhiVyuNYlsBE2k9T0TFzrx xTtcC8AoPdExEPjFy3K6pMcC/UQSUXOOMCPIIuhOFnXe6ZMIW4l3pH3Xb1kh369G d/+KgfXvGDAv46hFA6OgTYgOiOh+Zde38TJiyUiDdE1hQ4EoQScVmU8sPu4kFQ3e ke+nwaxVXesIBH7GaMeukbYfuDTnw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddruddtkedguddukecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefuvfhfhffkffgfgggjtgfgsehtkeertddtfeejnecuhfhrohhmpeetughr ihgrnhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtg homheqnecukfhppeejfedrvdefledruddujedrvdefkeenucfrrghrrghmpehmrghilhhf rhhomheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomhenucevlhhush htvghrufhiiigvpedt X-ME-Proxy: Received: from ranger.suse (c-73-239-117-238.hsd1.wa.comcast.net [73.239.117.238]) by mail.messagingengine.com (Postfix) with ESMTPA id 239A48005C; Mon, 20 May 2019 13:41:45 -0400 (EDT) Subject: Re: Loading table with indexed jsonb field is stalling To: Will Hartung References: Cc: pgsql-general From: Adrian Klaver Message-ID: Date: Mon, 20 May 2019 10:41:44 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 5/20/19 9:55 AM, Will Hartung wrote: Please reply to list also. Ccing list. > > > On Sat, May 18, 2019 at 6:55 AM Adrian Klaver > wrote: > > In addition to what Tim asked: > > Is the jsonb field the only field in the table? > > Can we see the table schema? Did you see Tom Lane's post? > > >  # \d eis_entity >                                Table "public.eis_entity" >           Column           |           Type           | Collation | > Nullable | Default > ---------------------------+--------------------------+-----------+----------+--------- >  eis_entity_key            | numeric                  |           | not > null | >  eis_identifier_domain_key | numeric                  |           | not > null | >  global_id                 | character varying(80)    |           | not > null | >  local_id                  | character varying(80)    |           | not > null | >  eis_status_key            | numeric                  |           | not > null | >  eis_entity_type_key       | numeric                  |           | not > null | >  eis_entity_domain_key     | numeric                  |           | not > null | >  all_trait_hash            | numeric(10,0)            | > |          | >  searchable_trait_hash     | numeric(10,0)            | > |          | >  created_date              | timestamp with time zone | > |          | >  traits                    | jsonb                    | > |          | >  current_revision          | numeric(8,0)             |           | not > null | >  current_version_label     | character varying(10)    |           | not > null | > Indexes: >     "eis_ent_traits" gin (traits jsonb_path_ops) > -- Adrian Klaver adrian.klaver@aklaver.com