Re: doc: New cumulative stats subsystem obsoletes comment in maintenance.sgml - Mailing list pgsql-hackers

From Andres Freund
Subject Re: doc: New cumulative stats subsystem obsoletes comment in maintenance.sgml
Date
Msg-id 20220719030412.hh6xwd4fd3in24dl@awork3.anarazel.de
Whole thread Raw
In response to Re: doc: New cumulative stats subsystem obsoletes comment in maintenance.sgml  ("David G. Johnston" <david.g.johnston@gmail.com>)
Responses Re: doc: New cumulative stats subsystem obsoletes comment in maintenance.sgml
List pgsql-hackers
Hi,

On 2022-07-18 19:47:39 -0700, David G. Johnston wrote:
> On Thu, Jul 14, 2022 at 4:31 PM Andres Freund <andres@anarazel.de> wrote:
> > It might make sense to still say semi-accurate, but adjust the explanation
> > to
> > say that stats reporting is not instantaneous?
> >
> >
> Unless that delay manifests in executing an UPDATE in a session then
> looking at these views in the same session and not seeing that update
> reflected I wouldn't mention it.

Depending on which stats you're looking at, yes, that could totally happen. I
don't think the issue is not seeing changes from the current transaction
though - it's that *after* commit you might not see them for a while (the're
transmitted not more than once a second, and can be delayed up to 60s if
there's contention).

Greetings,

Andres Freund



pgsql-hackers by date:

Previous
From: Kyotaro Horiguchi
Date:
Subject: Re: Error "initial slot snapshot too large" in create replication slot
Next
From: Bruce Momjian
Date:
Subject: Re: Doc about how to set max_wal_senders when setting minimal wal_level