pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Creating A GIN index on JSONB column (large database)
Date: Tue, 9 Aug 2022 11:46:03 -0500
Message-ID: <c64e172a-70dd-9af7-9d34-ec795396f50d@gmail.com> (raw)
In-Reply-To: <F7BF73FE-42EF-4804-971B-59D270DFCD6D@gmail.com>
References: <CAPLtOc=Psv+jm73YQDW-x0jj2qhvFBDVh0nK0MoSB=hRKAxL=Q@mail.gmail.com>
	<F7BF73FE-42EF-4804-971B-59D270DFCD6D@gmail.com>

On 8/9/22 09:39, Rob Sargent wrote:
>
>> On Aug 9, 2022, at 7:04 AM, Taylor Smith <taylorjrsmith@gmail.com> wrote:
>>
>> Hi all,
>>
>> I have a database that is in excess of 20TB in size, partitioned by date on a month to month basis.
>>
>> There is a column within that stores text (validated to be json but not stored as JSONB). I have a requirement to make the json searchable using GIN indexes. however when we try to create the GIN index on AWS RDS our temp storage maxes out which crashes the create process resulting in unhealthy created indexes.
>>
>> This might be an AWS issue but we are wondering the reason why creating these indexes (concurrently) would cause the temp storage to blow up and crash out and is it possible to mitigate or a necessary evil.
>>
>> The only solution we have so far is scale up our RDS instance.
>>
>> Kind regards,
>>
>> Taylor Smith
> The scale-up might be needed only for the create index.  Scale down afterwards?

Scaling down disks means using DMS (which costs money) to migrate the 
instance to a new instance.

-- 
Angular momentum makes the world go 'round.





view thread (7+ messages)  latest in thread

Message-ID: <c64e172a-70dd-9af7-9d34-ec795396f50d@gmail.com>
Permalink:  ../c64e172a-70dd-9af7-9d34-ec795396f50d@gmail.com/
Also on:    postgresql.org/message-id/c64e172a-70dd-9af7-9d34-ec795396f50d@gmail.com

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: ronljohnsonjr@gmail.com
  Subject: Re: Creating A GIN index on JSONB column (large database)
  In-Reply-To: <c64e172a-70dd-9af7-9d34-ec795396f50d@gmail.com>
  References: <CAPLtOc=Psv+jm73YQDW-x0jj2qhvFBDVh0nK0MoSB=hRKAxL=Q@mail.gmail.com> <F7BF73FE-42EF-4804-971B-59D270DFCD6D@gmail.com> <c64e172a-70dd-9af7-9d34-ec795396f50d@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