Re: reindex database

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: andreibancila(at)yahoo(dot)com, pgsql-docs(at)lists(dot)postgresql(dot)org
Subject: Re: reindex database
Date: 2020-06-29 14:44:23
Message-ID: 20200629144423.GB17529@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

On Sun, Jun 28, 2020 at 08:42:10PM +0000, PG Doc comments form wrote:
> The following documentation comment has been logged on the website:
>
> Page: https://www.postgresql.org/docs/10/sql-reindex.html
> Description:
>
> Hello,
> I am using this command to reindex the databases for a PostgreSQL 10
> cluster.
> What I can not find in the reindex explanation page is how is this affecting
> the standby database. I tracked the log creation on the Primary cluster but
> I saw nothing like this on the Standby cluster.
> I was able to find the following statement on the hot-standby description
> page (26.5. Hot Standby) from the documentation:
> "As a result, you cannot create additional indexes that exist solely on the
> standby, nor statistics that exist solely on the standby. If these
> administration commands are needed, they should be executed on the primary,
> and eventually those changes will propagate to the standby."
> (https://www.postgresql.org/docs/10/hot-standby.html)
> Can you please tell me more on this topic or point me to the documentation
> page that explained more on this topic (database reindex - synching with the
> standby cluster and impact on the standby cluster).
> Thank you,
> Andrei Bancila

For full-cluster, non-logical replication, the data files on the primary
and replicas have to be identical, so any reindex on the primary
generates replayed WAL records to the replica to recreate the index.

--
Bruce Momjian <bruce(at)momjian(dot)us> https://momjian.us
EnterpriseDB https://enterprisedb.com

The usefulness of a cup is in its emptiness, Bruce Lee

In response to

Browse pgsql-docs by date

  From Date Subject
Next Message PG Doc comments form 2020-06-29 15:02:57 Create Procedure
Previous Message Bruce Momjian 2020-06-29 13:53:17 Re: INDEX with optional storage parameter value