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 1tsCYE-00GREr-9x for pgsql-hackers@arkaria.postgresql.org; Wed, 12 Mar 2025 03:14:34 +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 1tsCYC-00CQCq-Pg for pgsql-hackers@arkaria.postgresql.org; Wed, 12 Mar 2025 03:14:32 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tsCYC-00CQCh-FM for pgsql-hackers@lists.postgresql.org; Wed, 12 Mar 2025 03:14:32 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tsCY8-002MFQ-1Y for pgsql-hackers@lists.postgresql.org; Wed, 12 Mar 2025 03:14:32 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 52C3EOb01870854; Tue, 11 Mar 2025 23:14:24 -0400 From: Tom Lane To: Michael Paquier cc: Bertrand Drouvot , Andres Freund , Xuneng Zhou , pgsql-hackers@lists.postgresql.org Subject: Re: per backend WAL statistics In-reply-to: References: Comments: In-reply-to Michael Paquier message dated "Tue, 11 Mar 2025 09:06:27 +0900" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1870852.1741749264.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Tue, 11 Mar 2025 23:14:24 -0400 Message-ID: <1870853.1741749264@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Michael Paquier writes: > And I guess that we're OK here, so applied. That should be the last > one. Quite a few buildfarm members are not happy about the initialization that 9a8dd2c5a added to PendingBackendStats. For instance [1]: gcc -std=3Dgnu99 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-= after-statement -Werror=3Dvla -Wendif-labels -Wmissing-format-attribute -W= format-security -fno-strict-aliasing -fwrapv -fexcess-precision=3Dstandard= -g -O2 -I. -I. -I../../../../src/include -D_GNU_SOURCE -I/usr/include/li= bxml2 -c -o pgstat_backend.o pgstat_backend.c pgstat_backend.c:39:1: warning: missing braces around initializer [-Wmissi= ng-braces] static PgStat_BackendPending PendingBackendStats =3D {0}; ^ pgstat_backend.c:39:1: warning: (near initialization for \342\200\230Pendi= ngBackendStats.pending_io\342\200\231) [-Wmissing-braces] I guess that more than one level of braces is needed for this to be fully correct? Similar from ayu, batfish, boa, buri, demoiselle, dhole, rhinoceros, shelduck, siskin. regards, tom lane [1] https://buildfarm.postgresql.org/cgi-bin/show_stage_log.pl?nm=3Darowan= a&dt=3D2025-03-11%2004%3A59%3A16&stg=3Dbuild