Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1syB1P-00Etxy-5V for pgsql-hackers@arkaria.postgresql.org; Tue, 08 Oct 2024 14:17:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1syB1M-0095Ep-D6 for pgsql-hackers@arkaria.postgresql.org; Tue, 08 Oct 2024 14:17:04 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1syB1L-0095Eh-Uq for pgsql-hackers@lists.postgresql.org; Tue, 08 Oct 2024 14:17:04 +0000 Received: from mail.postgrespro.ru ([93.174.131.139]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1syB1I-0039hF-0g for pgsql-hackers@lists.postgresql.org; Tue, 08 Oct 2024 14:17:02 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=postgrespro.ru; s=mx2023; t=1728397015; bh=8I1Ve/XCiAoVJ6rrEX6NdFjvpINNYZr30LhPMeOruSM=; h=Message-ID:Date:User-Agent:Subject:To:Cc:References:From: In-Reply-To:From; b=amjVM5vwvuEe+xPFPb790/oe+oxSzTVXViGAWEH0Nx7TBNCnWVhHBEzkbEOzw/0hs BFQOWIeV8xgmG6sifrKXvB5mm0bpYuBuYLCVMvr6sbbSFmZ2OU+DIRcc2e0i9oQGdm l8j9LB/Q1YB7KzkGPZ0BmoCj4i0lJelxo5yzFg92igJrj/KIcQ7ZZdbnoz+Sda1/jz 1d+OJhK48MUDO32kFXZlaBi2Ner/MopQ2FXlvwNnNpse7WvWfHpdXCUWMh3jKFo/iv RA3PZqHQnD5zCG+LvmmSwhcWOUrpQZi+/0ar7YfO5W7PErhQIwzn2H5T4zR7B2W6Ua /cPqf3WzaCLgg== Received: from [172.30.32.46] (unknown [172.30.32.46]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: a.melnikov@postgrespro.ru) by mail.postgrespro.ru (Postfix/587) with ESMTPSA id 4F51B6070C; Tue, 8 Oct 2024 17:16:55 +0300 (MSK) Message-ID: Date: Tue, 8 Oct 2024 17:16:55 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: May be BUG. Periodic burst growth of the checkpoint_req counter on replica. To: Fujii Masao , Alexander Korotkov Cc: Magnus Hagander , "Anton A. Melnikov" , Andres Freund , Kyotaro Horiguchi , pgsql-hackers@lists.postgresql.org References: <99b2ccd1-a77a-962a-0837-191cdf56c2b9@inbox.ru> <3ed0590b-8132-482e-a9e6-bd694e4a48d7@postgrespro.ru> <9ea77f40-818d-4841-9dee-158ac8f6e690@oss.nttdata.com> <77032579-4dc3-4552-9a09-30aaa114c144@postgrespro.ru> <206e58c1-d8f6-4ac3-8f40-7e4c17459473@oss.nttdata.com> <82f03b0b-00c6-42b4-95c7-f2eca7fed1ea@oss.nttdata.com> <4640258e-d959-4cf0-903c-cd02389c3e05@oss.nttdata.com> <8e5f353f-8b31-4a8e-9cfa-c037f22b4aee@postgrespro.ru> <2adc5283-ae2c-424a-babf-0247eeebf5a3@oss.nttdata.com> Content-Language: en-US From: "Anton A. Melnikov" In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-KSMG-AntiPhishing: NotDetected, bases: 2024/10/08 12:16:00 X-KSMG-AntiSpam-Interceptor-Info: not scanned X-KSMG-AntiSpam-Status: not scanned, disabled by settings X-KSMG-AntiVirus: Kaspersky Secure Mail Gateway, version 2.1.0.7854, bases: 2024/10/08 08:46:00 #26716404 X-KSMG-AntiVirus-Status: NotDetected, skipped X-KSMG-LinksScanning: not scanned, disabled by settings X-KSMG-Message-Action: skipped X-KSMG-Rule-ID: 1 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 08.10.2024 15:42, Fujii Masao wrote: > On 2024/09/30 12:26, Fujii Masao wrote: >>>> 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(). >> >> Yes, good catch! > > Patch attached. Looked at the patch. Just in case, checked that neither “backend completed” nor “backend requested” were found anywhere else. All is ok for me. Thanks a lot! With the best wishes, -- Anton A. Melnikov Postgres Professional: http://www.postgrespro.com The Russian Postgres Company