pg.ddx.io pgsql-hackers@postgresql.org mailing list archive
help / color / mirror / Atom feed From: Anton A. Melnikov <a.melnikov@postgrespro.ru>
To: Fujii Masao <masao.fujii@oss.nttdata.com>
To: Alexander Korotkov <aekorotkov@gmail.com>
Cc: Magnus Hagander <magnus@hagander.net>
Cc: Anton A. Melnikov <aamelnikov@inbox.ru>
Cc: Andres Freund <andres@anarazel.de>
Cc: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Cc: pgsql-hackers@lists.postgresql.org
Subject: Re: May be BUG. Periodic burst growth of the checkpoint_req counter on replica.
Date: Sun, 22 Sep 2024 07:55:11 +0300
Message-ID: <8e5f353f-8b31-4a8e-9cfa-c037f22b4aee@postgrespro.ru> (raw )
In-Reply-To: <4640258e-d959-4cf0-903c-cd02389c3e05@oss.nttdata.com >
References: <99b2ccd1-a77a-962a-0837-191cdf56c2b9@inbox.ru >
<CAPpHfdtZvVRpQErb_KpbrieROPpo5o2wemAp-jJOVdww2AdQqg@mail.gmail.com >
<7bd1c12b-4219-45bf-88a6-8cacd008dfdc@postgrespro.ru >
<CAPpHfduW_LbrU1JPtEDek5Fj3_=GZRU=qvFMyg7hnky7BLCGVw@mail.gmail.com >
<CABUevExav5-SR0x+G9kBUMV0G8XsvSUfuyyqmYBBJi6VHns6sw@mail.gmail.com >
<CAPpHfdtfDPEy4Pf1n2LvhsQ8ZsE40=OcFf=+U3BAQvfCtdj0MQ@mail.gmail.com >
<3ed0590b-8132-482e-a9e6-bd694e4a48d7@postgrespro.ru >
<CAPpHfduFpdq0dUsF=SmTtYit684JoSQrXvzhA+hap-tCA8Z2cA@mail.gmail.com >
<CAPpHfdss-+EZHUP_MMNm9wHm43+ZM84ERWZvGO+p-5kH_Qt6og@mail.gmail.com >
<9ea77f40-818d-4841-9dee-158ac8f6e690@oss.nttdata.com >
<77032579-4dc3-4552-9a09-30aaa114c144@postgrespro.ru >
<206e58c1-d8f6-4ac3-8f40-7e4c17459473@oss.nttdata.com >
<a9cbe052-7cd2-46d2-a688-c7b08919db83@postgrespro.ru >
<82f03b0b-00c6-42b4-95c7-f2eca7fed1ea@oss.nttdata.com >
<a7f75d42-3a2e-4d70-a1b1-27c8706d2897@postgrespro.ru >
<4640258e-d959-4cf0-903c-cd02389c3e05@oss.nttdata.com >
On 20.09.2024 19:19, Fujii Masao wrote:
> I've attached the updated version (0001.patch). I made some cosmetic changes,
> including reverting the switch in the entries for pg_stat_get_checkpointer_write_time
> and pg_stat_get_checkpointer_sync_time in pg_proc.dat, as I didn’t think
> that change was necessary. Could you please review the latest version?
Thanks for corrections!
All looks good for me.
As for switching in the pg_proc.dat entries the idea was to put them in order
so that the pg_stat_get_checkpointer* functions were grouped together.
I don't know if this is the common and accepted practice. Simply i like it better this way.
Sure, if you think it's unnecessary, let it stay as is with minimal diff.
> After we commit 0001.patch, how about applying 0002.patch, which updates
> the documentation for the pg_stat_checkpointer view to clarify what types
> of checkpoints and restartpoints each counter tracks?
I liked that the short definitions of the counters are now separated from
the description of its work features which are combined into one paragraph.
It seems to me that is much more logical and easier to understand.
In addition, checkpoints may be skipped due to "checkpoints are occurring
too frequently" error. Not sure, but maybe add this information to
the new description?
> In 0002.patch, I also modified the description of num_requested from
> "Number of backend requested checkpoints" to remove "backend," as it can
> be confusing since num_requested includes requests from sources other than
> the backend. Thought?
Agreed. E.g. from xlog. Then maybe changed it also in the function
descriptions in the pg_proc.dat? For pg_stat_get_checkpointer_num_requested()
and pg_stat_get_checkpointer_restartpoints_requested().
Also checked v4 with the travis patch-tester. All is ok.
With the best wishes!
--
Anton A. Melnikov
Postgres Professional: http://www.postgrespro.com
The Russian Postgres Company
view thread (35+ messages) latest in thread
Message-ID: <8e5f353f-8b31-4a8e-9cfa-c037f22b4aee@postgrespro.ru>
Permalink: ../8e5f353f-8b31-4a8e-9cfa-c037f22b4aee@postgrespro.ru/
Also on: postgresql.org/message-id/8e5f353f-8b31-4a8e-9cfa-c037f22b4aee@postgrespro.ru
copy link · copy postgr.es
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-hackers@postgresql.org
Cc: a.melnikov@postgrespro.ru, masao.fujii@oss.nttdata.com, aekorotkov@gmail.com, magnus@hagander.net, aamelnikov@inbox.ru, andres@anarazel.de, horikyota.ntt@gmail.com, pgsql-hackers@lists.postgresql.org
Subject: Re: May be BUG. Periodic burst growth of the checkpoint_req counter on replica.
In-Reply-To: <8e5f353f-8b31-4a8e-9cfa-c037f22b4aee@postgrespro.ru>
* 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