Re: massive update on gin index - Mailing list pgsql-general

From Marcos Pegoraro
Subject Re: massive update on gin index
Date
Msg-id CAB-JLwZeSdiRJkGMFEzpdkN97XbRbYr5G2ntAGzYmAjtRjihog@mail.gmail.com
Whole thread Raw
In response to Re: massive update on gin index  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
Em qua., 14 de set. de 2022 às 16:55, Tom Lane <tgl@sss.pgh.pa.us> escreveu:
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-UPDATE

                        regards, tom lane

Correct, if I want use that index immediately with same performance I have to call

select pg_catalog.gin_clean_pending_list('idxphones');

Or wait next autovacuum.

thanks
Marcos

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: massive update on gin index
Next
From: Mladen Gogala
Date:
Subject: Re: Is it possible to stop sessions killing eachother when they all authorize as the same role?