Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oLQZJ-0004FM-W5 for pgsql-general@arkaria.postgresql.org; Tue, 09 Aug 2022 14:50:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oLQZI-0005PY-Mb for pgsql-general@arkaria.postgresql.org; Tue, 09 Aug 2022 14:50:52 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oLQZI-0005PO-Bj for pgsql-general@lists.postgresql.org; Tue, 09 Aug 2022 14:50:52 +0000 Received: from mail-pf1-x42a.google.com ([2607:f8b0:4864:20::42a]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oLQZG-0002td-9X for pgsql-general@lists.postgresql.org; Tue, 09 Aug 2022 14:50:51 +0000 Received: by mail-pf1-x42a.google.com with SMTP id q19so10992485pfg.8 for ; Tue, 09 Aug 2022 07:50:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc; bh=UrHvXcm+n+ojtAmQAFjoeBXOnLXR+oKy20ZMV/F/clA=; b=fhXV/ma0A2uEe7Zh6D+MPMaNxX55vrOlSz1TCeZgZ648qkHzHZO+lwG4XhkPKLBUA7 YLPMYbcJAcSTV9pxAvX3BNutjtgJSOupKEceR4g/cy6kkPzbdgFU5DcZCj35Xn/U1hgY kceeDzjWB/U33h7rFUAqEVdqgmNfbn1qm4j4kaUDRDxO/l2ub+o991IzSMDIq5FlyLkJ 6NvZeg3J4UJYrtKkG6mx694PQQEyzod2EsCUiMlmhlUFeiKOng7wy5nUh1Y32EyqnUPp HdyZJbe6NME4b58SNL5jVeCkgPeQMCX35gRK8p8joCN6f/A0+YVfn7m0nBVUY0PdiFzy Idzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc; bh=UrHvXcm+n+ojtAmQAFjoeBXOnLXR+oKy20ZMV/F/clA=; b=2HrTkUjVFTYvRI4hRya8AQQyXo3gjKDeCiuRKkuh+vNMllJ49xFfCuwBvWNss0QqGl Ot2S6C5sxzoio8AADl6dUrlJNm4v9tpBriaCvCNiEpko07gNCrDFUk5Yl5bJ5rtydsfP AgbDpa+0iOeDhtXWitQeqn8ksJbodTxTrZAep6aLFaVvI39Tlc04ok9ZLut1KdexHHOr ZG40tSAaEWaosuQZjYNW79z6amaqLOVXEyo1hUwAMJWKycnOQHJgl8ByUCXF3/Js6hhN /G3p9gBezJb4eymiArB4q4a4Ep7cm5s5aB3ovqYHBzZvFqmVqWCgBtE5U5ymSSX0HFzV K9aA== X-Gm-Message-State: ACgBeo2/6IARt1E9bcdyDPZfhgb4Vu01sWsPzC+2OrrFEzoT0+nJ+Jo4 +3cLEOTQaCnvPXOHKRBLiXw= X-Google-Smtp-Source: AA6agR6qOCCW82XvwHzwVFO1l6i/cEec6YG+EOtEiWG7HeNCDYQU3EZyGTajFFKxTwRvBQ6QqLSaAw== X-Received: by 2002:a05:6a00:ac1:b0:52b:5db8:f362 with SMTP id c1-20020a056a000ac100b0052b5db8f362mr23360385pfl.80.1660056648093; Tue, 09 Aug 2022 07:50:48 -0700 (PDT) Received: from smtpclient.apple ([155.98.131.4]) by smtp.gmail.com with ESMTPSA id be9-20020a656e49000000b0041c49af8156sm8228014pgb.6.2022.08.09.07.50.47 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 Aug 2022 07:50:47 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Subject: Re: Creating A GIN index on JSONB column (large database) From: Rob Sargent In-Reply-To: Date: Tue, 9 Aug 2022 07:50:46 -0700 Cc: pgsql-general@lists.postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: <46275978-098E-42D4-BA61-AD1F7F282678@gmail.com> References: To: Taylor Smith X-Mailer: Apple Mail (2.3654.120.0.1.13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On Aug 9, 2022, at 7:45 AM, Taylor Smith = wrote: >=20 > Thanks Rob, >=20 > This is what I was thinking. Would you say it presents any risk then = having a database unable to rebuild its own indexes if needed? >=20 >=20 No I would not. The scale-up + rebuild should tell you how much you = actually need and if you=E2=80=99ve over done the scale up you can scale = down to what you need. Was the original spec expecting 20+T? Any = chance of rolling older months off to some other node?