Re: add checkpoint stats of snapshot and mapping files of pg_logical dir - Mailing list pgsql-hackers

From Nathan Bossart
Subject Re: add checkpoint stats of snapshot and mapping files of pg_logical dir
Date
Msg-id 20220823174940.GC1207981@nathanxps13
Whole thread Raw
In response to Re: add checkpoint stats of snapshot and mapping files of pg_logical dir  (Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>)
Responses Re: add checkpoint stats of snapshot and mapping files of pg_logical dir
Re: add checkpoint stats of snapshot and mapping files of pg_logical dir
List pgsql-hackers
On Wed, Aug 17, 2022 at 11:17:24AM +0530, Bharath Rupireddy wrote:
> +                        "logical decoding file(s) processing time=%ld.%03d s",

I would suggest shortening this to something like "logical decoding
processing" or "logical replication processing."

>      CheckPointRelationMap();
>      CheckPointReplicationSlots();
> +
> +    CheckpointStats.l_dec_ops_start_t = GetCurrentTimestamp();
>      CheckPointSnapBuild();
>      CheckPointLogicalRewriteHeap();
> +    CheckpointStats.l_dec_ops_end_t = GetCurrentTimestamp();
> +
>      CheckPointReplicationOrigin();

Shouldn't we include CheckPointReplicationSlots() and
CheckPointReplicationOrigin() in this new stat?

-- 
Nathan Bossart
Amazon Web Services: https://aws.amazon.com



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: archive modules
Next
From: Alvaro Herrera
Date:
Subject: Re: [BUG] parenting a PK constraint to a self-FK one (Was: Self FK oddity when attaching a partition)