Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jpv1J-0005O1-7x for pgsql-docs@arkaria.postgresql.org; Mon, 29 Jun 2020 14:44:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jpv1I-0008JN-5i for pgsql-docs@arkaria.postgresql.org; Mon, 29 Jun 2020 14:44:28 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jpv1I-0008JF-0F for pgsql-docs@lists.postgresql.org; Mon, 29 Jun 2020 14:44:28 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jpv1F-0005SA-CD for pgsql-docs@lists.postgresql.org; Mon, 29 Jun 2020 14:44:27 +0000 Received: from bruce by momjian.us with local (Exim 4.92) (envelope-from ) id 1jpv1D-0004bA-IR; Mon, 29 Jun 2020 10:44:23 -0400 Date: Mon, 29 Jun 2020 10:44:23 -0400 From: Bruce Momjian To: andreibancila@yahoo.com, pgsql-docs@lists.postgresql.org Subject: Re: reindex database Message-ID: <20200629144423.GB17529@momjian.us> References: <159337693095.683.13638770130415272902@wrigleys.postgresql.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <159337693095.683.13638770130415272902@wrigleys.postgresql.org> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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 https://momjian.us EnterpriseDB https://enterprisedb.com The usefulness of a cup is in its emptiness, Bruce Lee