pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: nikonoid@gmail.com
Cc: pgsql-docs@lists.postgresql.org
Subject: Re: Comment about not being able to run ANALYZE on replicas
Date: Mon, 25 Oct 2021 12:30:28 -0400
Message-ID: <4047078.1635179428@sss.pgh.pa.us> (raw)
In-Reply-To: <163515719397.680.3148788647269877231@wrigleys.postgresql.org>
References: <163515719397.680.3148788647269877231@wrigleys.postgresql.org>

PG Doc comments form <noreply@postgresql.org> writes:
> https://www.postgresql.org/docs/12/sql-analyze.html does not have anything
> about not being able to run ANALYZE on replicas. 
> I now understand that this is because statistics are stored in a table, and
> that table is replicated from primary server to the replica, but it would be
> helpful to have something about this in the official documentation.

I'm a little skeptical about that.  By that argument, nearly every one
of our SQL command pages would need a disclaimer saying that you can't
use it on a replica.

			regards, tom lane





view thread (2+ messages)

Message-ID: <4047078.1635179428@sss.pgh.pa.us>
Permalink:  ../4047078.1635179428@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/4047078.1635179428@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 using the --to and --cc options:
  reply via email

  To: pgsql-docs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, nikonoid@gmail.com, pgsql-docs@lists.postgresql.org
  Subject: Re: Comment about not being able to run ANALYZE on replicas
  In-Reply-To: <4047078.1635179428@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