Re: REINDEX in tables - Mailing list pgsql-general

From Laurenz Albe
Subject Re: REINDEX in tables
Date
Msg-id bedf2448c1a2a14f476a2abadd0a3034065df7dc.camel@cybertec.at
Whole thread Raw
In response to Re: REINDEX in tables  (Andreas Kretschmer <andreas@a-kretschmer.de>)
Responses Re: REINDEX in tables  (Andreas Kretschmer <andreas@a-kretschmer.de>)
List pgsql-general
On Wed, 2023-10-25 at 11:59 +0200, Andreas Kretschmer wrote:
> Am 25.10.23 um 11:57 schrieb Matthias Apitz:
> > El día miércoles, octubre 25, 2023 a las 11:33:11 +0200, Andreas Kretschmer escribió:
> > > Am 25.10.23 um 11:24 schrieb Matthias Apitz:
> > > > We have a client who run REINDEX in certain tables of the database of
> > > > our application (on Linux with PostgreSQL 13.x):
> > > >
> > > > REINDEX TABLE CONCURRENTLY d83last;
> > > > REINDEX TABLE CONCURRENTLY d86plz;
> > > > REINDEX TABLE CONCURRENTLY ig_memtable;
> > > > REINDEX TABLE CONCURRENTLY ig_dictionary;
> > > > REINDEX TABLE CONCURRENTLY ig_dictionary;
> > > > REINDEX TABLE CONCURRENTLY d50zweig ;
> > > > REINDEX TABLE CONCURRENTLY d50zweig ;
> > > >
> > > > We as the software vendor and support, do not use or recommend this
> > > > procedure, because we have own SQL files for creating or deleting
> > > > indices in the around 400 tables.
> > > >
> > > > The client is now concerned about the issue that the number of
> > > > rows in some of the above tables has increased. Is this possible?
> >
>
> no, reindex will not add rows to the table.

But if the indexes were corrupted before the REINDEX, it is possible that
a query that didn't find a result before the REINDEX can find one afterwards.

Yours,
Laurenz Albe



pgsql-general by date:

Previous
From: Momchil Milev
Date:
Subject: Question about the new PostgreSQL 16 availability on Ubuntu
Next
From: Andreas Kretschmer
Date:
Subject: Re: REINDEX in tables