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 1oYYUJ-0001Sk-1Y for pgsql-general@arkaria.postgresql.org; Wed, 14 Sep 2022 19:55:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oYYUH-0005f4-PD for pgsql-general@arkaria.postgresql.org; Wed, 14 Sep 2022 19:55:57 +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 1oYYUH-0005ev-F1 for pgsql-general@lists.postgresql.org; Wed, 14 Sep 2022 19:55:57 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oYYUE-0002Jq-D1 for pgsql-general@lists.postgresql.org; Wed, 14 Sep 2022 19:55:56 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 28EJtobm2869290; Wed, 14 Sep 2022 15:55:50 -0400 From: Tom Lane To: Marcos Pegoraro cc: Rob Sargent , "pgsql-generallists.postgresql.org" Subject: Re: massive update on gin index In-reply-to: References: <3D4F5EA2-3144-4F3B-8FBC-A4FD524B663F@gmail.com> <7b4a6c68-93cc-202a-a87e-a30e6effc80f@gmail.com> Comments: In-reply-to Marcos Pegoraro message dated "Wed, 14 Sep 2022 16:51:29 -0300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2869287.1663185350.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Wed, 14 Sep 2022 15:55:50 -0400 Message-ID: <2869288.1663185350@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Marcos Pegoraro writes: > I know I have other options, and possibly better, but I was trying to > understand what happens with gin indexes, just that. GIN does have a "pending list" of insertions not yet pushed into the main index structure, and search performance will suffer if that gets too bloated. I don't recall much about how to control that, but I think vacuuming the table will serve to empty the pending list. Also see https://www.postgresql.org/docs/current/gin-implementation.html#GIN-FAST-U= PDATE regards, tom lane