pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feed From: Will Hartung <willhartung@gmail.com>
To: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: Will Hartung <willhartung@gmail.com>
Cc: Ron <ronljohnsonjr@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Loading table with indexed jsonb field is stalling
Date: Mon, 20 May 2019 16:49:45 -0700
Message-ID: <375E86FF-5B4D-4896-B4ED-FCA8C1D3A60B@gmail.com> (raw )
In-Reply-To: <7c0a001e-d3d5-c521-1a27-77d05f547fef@aklaver.com >
References: <CAKMEDdxE95SC76wadMzrH454HpvCV4tOdEmuZRO=pwArEw6YVg@mail.gmail.com >
<20505.1558202555@sss.pgh.pa.us >
<90835D2B-1FBA-4F26-8157-7C831C24B266@gmail.com >
<cdc049f0-1980-f5a8-726a-629345b41ef0@aklaver.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 >
<7c0a001e-d3d5-c521-1a27-77d05f547fef@aklaver.com >
> On May 20, 2019, at 4:39 PM, Adrian Klaver <adrian.klaver@aklaver.com> wrote:
>
> So the issue is building the index(s) not loading the data, correct?
Correct.
Since I have been exploring this, I have not been able to successfully create a gin jsonb_path_ops index on a jsonb field either as a new index on a table with existing data, or as a pre-existing index on an empty table and loading the data in.
The create index does not finish on the existing data, and loading data does not finish when the index pre-exists.
We currently have a 68M row table loaded in an Aurora instance on AWS (I do not know the instance/machine size), and the index has been building for 48 hours now.
The pg_restore is currently working on that index:
CREATE INDEX eis_ent_traits
ON public.eis_entity
USING gin
(traits jsonb_path_ops);
view thread (30+ messages) latest in thread
Message-ID: <375E86FF-5B4D-4896-B4ED-FCA8C1D3A60B@gmail.com>
Permalink: ../375E86FF-5B4D-4896-B4ED-FCA8C1D3A60B@gmail.com/
Also on: postgresql.org/message-id/375E86FF-5B4D-4896-B4ED-FCA8C1D3A60B@gmail.com
copy link · copy postgr.es
reply Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-general@postgresql.org
Cc: willhartung@gmail.com, adrian.klaver@aklaver.com, ronljohnsonjr@gmail.com, pgsql-general@lists.postgresql.org
Subject: Re: Loading table with indexed jsonb field is stalling
In-Reply-To: <375E86FF-5B4D-4896-B4ED-FCA8C1D3A60B@gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox