From: Bruce Momjian <bruce@momjian.us>
To: andreibancila@yahoo.com
To: pgsql-docs@lists.postgresql.org
Subject: Re: reindex database
Date: Mon, 29 Jun 2020 10:44:23 -0400
Message-ID: <20200629144423.GB17529@momjian.us> (raw)
In-Reply-To: <159337693095.683.13638770130415272902@wrigleys.postgresql.org>
References: <159337693095.683.13638770130415272902@wrigleys.postgresql.org>
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@momjian.us> https://momjian.us
EnterpriseDB https://enterprisedb.com
The usefulness of a cup is in its emptiness, Bruce Lee
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 using the --to and --cc options:
reply via email
To: pgsql-docs@postgresql.org
Cc: bruce@momjian.us, andreibancila@yahoo.com, pgsql-docs@lists.postgresql.org
Subject: Re: reindex database
In-Reply-To: <20200629144423.GB17529@momjian.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