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 1hSt35-00081h-Do for pgsql-general@arkaria.postgresql.org; Tue, 21 May 2019 00:54:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hSt33-0000wi-RL for pgsql-general@arkaria.postgresql.org; Tue, 21 May 2019 00:54:33 +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 1hSt33-0000wV-BV for pgsql-general@lists.postgresql.org; Tue, 21 May 2019 00:54:33 +0000 Received: from mail-oi1-x230.google.com ([2607:f8b0:4864:20::230]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hSt2z-0000r2-Qz for pgsql-general@lists.postgresql.org; Tue, 21 May 2019 00:54:31 +0000 Received: by mail-oi1-x230.google.com with SMTP id 203so11452164oid.13 for ; Mon, 20 May 2019 17:54:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=vT/4D43LZkq5T3f0qziKKUGRj+P8BByAhLeaIeaYpR4=; b=bTTyUIFGN35E5NrvncJlKzLK26Ax6lF18F1OEK6CuUTtKBUnWwo67XuhCD2R5GV2gq hKXjEdNh9kLTgj2HS+kz7kQIpIE696vTrn0cQ3Smwo4h9Kje3Ux9v6tK0exkQsUSH5Pb pbjnbcCLFXf2qvQ2zfbUz44DnB7Dp5eBhjXUctxBOIar5LrQqRJJElLtY6q3kR47PwA2 a0sPbZ0l+k0ot7simPK2qVa3eBWIBljxmcHyJJFwwFDsb9Zig9/uHtmJzYUksjPu+Y0r LqN4tR79TORo95RZYaKq/GVVRw1zwiO0ZDi5z6SZ67WlLKOWUGDhIjJVfW0gs5Eh3LOH NtXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=vT/4D43LZkq5T3f0qziKKUGRj+P8BByAhLeaIeaYpR4=; b=qENfh3H+bDYzOW+o59gxTs8JGYwRVNsVCEXPULaSKuKXciEm3ydj9B/nk/GOTrzJ3c sibLfCanQIZ0aHJ7XblCuMCYS41Wg6Nb0J4UV2hrTovO2VIoAwnfAwkeo4E0fX+QVUZI dQJ4e6N+l7/v94GOhJSbAEXMPokwaXtAr1OsOKmfhWbwDPWiVpa/JrmhJfXRjey9rRhB PsBePYBxrGQ8WaGqwZMmJnkcIu9SVZWwBZfljMOwDnXeufWRNIHHie4+ASX/938vX2ho 9Frz8gCBCEhsFO8fbF1z9UzyAqPq5Dv7TjbtrWMFIVjqc103lP7APu27YUZycBgld+7Q tYhg== X-Gm-Message-State: APjAAAUnqAPLDiK/svAQ2fTOrcbSMXLjtoUdBcLOJYFRkkGDGloK0TDE KwsbeqGeUbS/H1ReT7+vbTr2ZsesuYbugQ== X-Google-Smtp-Source: APXvYqwcXXFzbRTvWjfDC2Wk3cYup+jf+Z34bM3vxAPALje2xlFgLqnKajLe6rT17DMDqPpjw0dZbA== X-Received: by 2002:aca:ec0f:: with SMTP id k15mr1415608oih.43.1558400068747; Mon, 20 May 2019 17:54:28 -0700 (PDT) Received: from [192.168.1.10] (ip70-171-116-89.no.no.cox.net. [70.171.116.89]) by smtp.googlemail.com with ESMTPSA id r65sm4363286oif.31.2019.05.20.17.54.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 20 May 2019 17:54:27 -0700 (PDT) Subject: Re: Loading table with indexed jsonb field is stalling To: Will Hartung Cc: pgsql-general@lists.postgresql.org References: <20505.1558202555@sss.pgh.pa.us> <90835D2B-1FBA-4F26-8157-7C831C24B266@gmail.com> <3A35A039-D8F5-4B40-9B41-42E70BEF2C2E@gmail.com> <806d4915-f05d-8e75-0a42-e11b48596ab5@gmail.com> <12E9FEDD-37E9-4D51-9BA7-94FF5039BB1B@gmail.com> <563e995f-d7b1-7e2f-c1f1-b00db7a18589@gmail.com> <3EF519CA-17FE-4B68-8B7A-78200E0A408F@gmail.com> <71e50367-2375-86a8-f795-97c894728998@gmail.com> <3CC10064-7BF0-4600-BC67-8B6F412C9CDC@gmail.com> <0a8876b8-f4de-4bc2-72c8-afe5dfe6fde2@gmail.com> From: Ron Message-ID: <792059f6-9815-03c2-5ccd-9d21c61925b6@gmail.com> Date: Mon, 20 May 2019 19:54:27 -0500 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-Transfer-Encoding: 8bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 5/20/19 7:21 PM, Will Hartung wrote: >> On May 20, 2019, at 5:15 PM, Ron wrote: >> >> Are there a sufficiently small number of elements in each traits object that you can do something like this, on the UNINDEXED table? >> SELECT traits->element1, traits->element2, count(*) >> from eis_entry >> group by traits->element1, traits->element2; >> >> Sure it would run for a long time, but might show you where the problem lies. > I don’t quite understand what you’re trying to achieve here. Is the intent essentially to access each individual element within the json on the select statement? There’s at least 50 elements in this thing, Like I said earlier... "Are there a sufficiently small number of elements in each traits object...?"  But obviously there aren't. -- Angular momentum makes the world go 'round.