pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Marcos Pegoraro <marcos@f10.com.br>
Cc: Rob Sargent <robjsargent@gmail.com>
Cc: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: massive update on gin index
Date: Wed, 14 Sep 2022 15:55:50 -0400
Message-ID: <2869288.1663185350@sss.pgh.pa.us> (raw)
In-Reply-To: <CAB-JLwbez84ZK3xYALtmxQr=1e_TsRpxfDjhiKkk=C6DL_mY3A@mail.gmail.com>
References: <CAB-JLwa1KMTj17y5cCdNQC_KFd16VXViZ_Hf1Jt+AUgiUo75Qg@mail.gmail.com>
	<3D4F5EA2-3144-4F3B-8FBC-A4FD524B663F@gmail.com>
	<7b4a6c68-93cc-202a-a87e-a30e6effc80f@gmail.com>
	<CAB-JLwbez84ZK3xYALtmxQr=1e_TsRpxfDjhiKkk=C6DL_mY3A@mail.gmail.com>

Marcos Pegoraro <marcos@f10.com.br> 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-UPDATE

			regards, tom lane





view thread (6+ messages)  latest in thread

Message-ID: <2869288.1663185350@sss.pgh.pa.us>
Permalink:  ../2869288.1663185350@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/2869288.1663185350@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, marcos@f10.com.br, robjsargent@gmail.com
  Subject: Re: massive update on gin index
  In-Reply-To: <2869288.1663185350@sss.pgh.pa.us>
  References: <CAB-JLwa1KMTj17y5cCdNQC_KFd16VXViZ_Hf1Jt+AUgiUo75Qg@mail.gmail.com> <3D4F5EA2-3144-4F3B-8FBC-A4FD524B663F@gmail.com> <7b4a6c68-93cc-202a-a87e-a30e6effc80f@gmail.com> <CAB-JLwbez84ZK3xYALtmxQr=1e_TsRpxfDjhiKkk=C6DL_mY3A@mail.gmail.com> <2869288.1663185350@sss.pgh.pa.us>

* 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