public inbox for [email protected]
help / color / mirror / Atom feedFrom: Euler Taveira <[email protected]>
To: Jaime Casanova <[email protected]>
To: jian he <[email protected]>
Cc: [email protected]
Subject: Re: pg_stat_database view column xact_commit description should be more descriptive?
Date: Sun, 18 Dec 2022 11:55:01 -0300
Message-ID: <[email protected]> (raw)
In-Reply-To: <CAJKUy5iHOZZ+z66c3FUOWN_VVnYq-hDTeew_GK1JXmUdGw5Jvw@mail.gmail.com>
References: <CACJufxFUjNvGXWO7Rq8y5V8YyoMPGnf9Deeyw61Q=wVTqm-SiQ@mail.gmail.com>
<CAJKUy5iHOZZ+z66c3FUOWN_VVnYq-hDTeew_GK1JXmUdGw5Jvw@mail.gmail.com>
On Fri, Dec 16, 2022, at 5:40 PM, Jaime Casanova wrote:
> I want to hijack this thread to say that xact_commit seems to be also
> counting COMMIT records received by logical replication.
> Should we explain that in documentation?
Probably. I don't think adding something to pg_stat_database is appropriate.
IMO this concept should be explained in the logical replication chapter [1].
Logical replication uses transaction infrastructure to apply changes, hence,
statistics will take it into account.
> What about physical replication? Are those also counted?
No. Physical replication does not use the transaction machinery to replicate
changes. It is in a lower layer and statistics don't apply at it.
[1] https://www.postgresql.org/docs/devel/logical-replication.html
--
Euler Taveira
EDB https://www.enterprisedb.com/
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: [email protected]
Cc: [email protected], [email protected], [email protected], [email protected]
Subject: Re: pg_stat_database view column xact_commit description should be more descriptive?
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox