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 1p6v4i-0006dH-In for pgsql-docs@arkaria.postgresql.org; Sun, 18 Dec 2022 14:55:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1p6v4h-0004mo-2B for pgsql-docs@arkaria.postgresql.org; Sun, 18 Dec 2022 14:55:35 +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 1p6v4f-0004m7-Ma for pgsql-docs@lists.postgresql.org; Sun, 18 Dec 2022 14:55:34 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p6v4Z-0002kR-PE for pgsql-docs@lists.postgresql.org; Sun, 18 Dec 2022 14:55:32 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id A16475C00E9; Sun, 18 Dec 2022 09:55:24 -0500 (EST) Received: from imap49 ([10.202.2.99]) by compute6.internal (MEProxy); Sun, 18 Dec 2022 09:55:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eulerto.com; h= cc:cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm1; t=1671375324; x=1671461724; bh=o2Y63kE9hk tzlIAj0pyfAHqcO5q1e0BYbAVx6l4+cT8=; b=HoK+9m5pw/bAudP9jNUcCyZNPC Dldo5GMR2RMlZdzqL2KSn3OU+ZdUig7EkS5ydS6SKIKpMq6tt5+o43fLmqgNWAFM 4xwWblveCTRpiiM4MJSNAEcdtFnAOkDwY/tEctqGchXUTpTauyrJD6nKVn+nL4Q8 EQCaLm8ByAPaTrL+i6nPI9bq9KOew4ybPVWn30D/vhYJr4Nlhhm6ZASvXwhpwNa/ mGPxj2Dc6hCSdkI9reSBKhhPro2RSQL1SaN70nJoornqiPlFE1B5OxKD7K3I/3C7 FMDm8PHSHVbO/jJvyEwLLdkSbuWiZZYRcEpWp0kdbSJ9N/u97e40vR/mbmuA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1671375324; x=1671461724; bh=o2Y63kE9hktzlIAj0pyfAHqcO5q1 e0BYbAVx6l4+cT8=; b=pGzlqZWblK+DTq3u1Ezz6Uomu4j5NTXovWwFUru3eLPK ugS1UQhqDxzXtMcoB19pc+YHnHWAyd77y7xfa+53zf6rYDsPtHiNeki5JP9bYAO5 4aGOcBB4XLq56t2ZKrvSuN2W93XytA8bwokbU2c7g2vlfwPYPFOr1gceih3r5cEu oDQDpJmN3NQ+Y4Dc2BzUlCRvaLWzo51hJr1Fch0/DpAjXcgt73cfeo7skp/TeR5W cB34TMRIhIotBnkuEHejr6BJd3zB7jDiQGypSPMQh2wFwcPlUtphci7h5i8csy6v aUmrYriUtHaUsXHv5BeGcTOOWjr5UVgvy77w2Ry23Q== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrgedugdejvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvvefutgesrgdtreerreertdenucfhrhhomhepfdfguhhl vghrucfvrghvvghirhgrfdcuoegvuhhlvghrsegvuhhlvghrthhordgtohhmqeenucggtf frrghtthgvrhhnpeehvdevueeljeekfeeliefhfeefgfffgeeufefhvdeugedttdegvdeh uedvgfdugfenucffohhmrghinhepphhoshhtghhrvghsqhhlrdhorhhgpdgvnhhtvghrph hrihhsvggusgdrtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgr ihhlfhhrohhmpegvuhhlvghrsegvuhhlvghrthhordgtohhm X-ME-Proxy: Feedback-ID: i0c21471d:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 2495D15A0087; Sun, 18 Dec 2022 09:55:24 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.7.0-alpha0-1185-g841157300a-fm-20221208.002-g84115730 Mime-Version: 1.0 Message-Id: In-Reply-To: References: Date: Sun, 18 Dec 2022 11:55:01 -0300 From: "Euler Taveira" To: "Jaime Casanova" , "jian he" Cc: pgsql-docs@lists.postgresql.org Subject: Re: pg_stat_database view column xact_commit description should be more descriptive? Content-Type: multipart/alternative; boundary=fd65b9f3f1ea44c38a327883d6551de1 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --fd65b9f3f1ea44c38a327883d6551de1 Content-Type: text/plain 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/ --fd65b9f3f1ea44c38a327883d6551de1 Content-Type: text/html Content-Transfer-Encoding: quoted-printable
On Fri, Dec 16,= 2022, at 5:40 PM, Jaime Casanova wrote:
I want to hijack this thread to say that x= act_commit seems to be also
counting COMMIT records receiv= ed by logical replication.
Should we explain that in docum= entation?
Probably. I don't think adding some= thing 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 abo= ut physical replication? Are those also counted?
<= div>No. Physical replication does not use the transaction machinery to r= eplicate
changes. It is in a lower layer and statistics do= n't apply at it.


=


--
Euler Taveira
EDB   https://www.enterprisedb.com/

<= /body> --fd65b9f3f1ea44c38a327883d6551de1--