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.96) (envelope-from ) id 1vs1WT-001ATT-1w for pgsql-hackers@arkaria.postgresql.org; Mon, 16 Feb 2026 16:32:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vs1WS-003zC7-12 for pgsql-hackers@arkaria.postgresql.org; Mon, 16 Feb 2026 16:32:32 +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.96) (envelope-from ) id 1vs1WR-003zBy-38 for pgsql-hackers@lists.postgresql.org; Mon, 16 Feb 2026 16:32:32 +0000 Received: from fout-a1-smtp.messagingengine.com ([103.168.172.144]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1vs1WP-00000000v23-1KUF for pgsql-hackers@postgresql.org; Mon, 16 Feb 2026 16:32:31 +0000 Received: from phl-compute-12.internal (phl-compute-12.internal [10.202.2.52]) by mailfout.phl.internal (Postfix) with ESMTP id 7F22FEC07F4; Mon, 16 Feb 2026 11:32:29 -0500 (EST) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-12.internal (MEProxy); Mon, 16 Feb 2026 11:32:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kurilemu.de; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to; s=fm2; t=1771259549; x= 1771345949; bh=Gjf/fMHp5WP2Sq4G7MdaWxQaaKxGLWLeZpOabjZw9uM=; b=W UNK6MCGI3St/48slgTZwjo66cYShzILWpipH686bV2ZexlFJI3bPGSrUxugzcLTa SyRPfOEW6QUXcyf6Dc4qTKqkUbMv7E1n3Bf6CfY+DekGNo74gRvi1DsnmR7W95xg bxtl0FkGL4sDSFCzHuNyfGluSpfmLxsVuaiy8zZvv1Uup9Z9rLh5FB8XNzfX6J73 2aECzxly86I3Xj6x1ADfVtM8ak/N58hYcUTJBk6QyTTPHD7gKgT55ttnfq5ifMsX WxMNcT1k/lc/3d4M3VbEMjyd0C8Wft8X2iCATr8+j7ukLmCFiEznvxTLzKBuLNrG MXqz2Ld6f/goPY2SQu4HQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; t=1771259549; x=1771345949; bh=G jf/fMHp5WP2Sq4G7MdaWxQaaKxGLWLeZpOabjZw9uM=; b=tj2ee+VD7IERxMNa5 jdDaF5YeOPg5ghV1EhW0bobA+qovAX+T7Y/9MLxvnlq0maJgRlWYr84rFJGY4jKO YEZo0eznVzCDZDPFgpjAYl1i5sr9F8/XA9upZZ3yHBt926CS2xgKVPdNB0xLLICr OFMsviusOk7KJpwnh7aFL8nE7roZRWCVV636jqiOgKiVJv2pyg9CqG2kKEBK2VsM eW1zbdCILBwHzBWs2+sWrkXm/rRBg3aWmokqYaEWiWcH0K8vkQmUkRrxSDIWCSXf byq/GuB93By5EGCf78YZRoJgddINlkyU0N5RjBAwB5ktRHmIgqDiasx1N4D47xg1 o5ofQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgddvudejfeeiucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepfffhvfevuffkgggtugfgjgesthekredttddtjeenucfhrhhomheptehlvhgrrhho ucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsehkuhhrihhlvghmuhdruggvqeenucggtf frrghtthgvrhhnpeeiheehkeekleegueeifedvffegtddugeffheehfeeftdduhfdtkeef leelkeffjeenucffohhmrghinhepvghnthgvrhhprhhishgvuggsrdgtohhmnecuvehluh hsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghlvhhhvghrrhgv sehkuhhrihhlvghmuhdruggvpdhnsggprhgtphhtthhopeehpdhmohguvgepshhmthhpoh huthdprhgtphhtthhopegrnhgurhgvshesrghnrghrrgiivghlrdguvgdprhgtphhtthho pegrmhhithdrkhgrphhilhgrudeisehgmhgrihhlrdgtohhmpdhrtghpthhtoheplhhird gvvhgrnhdrtghhrghosehgmhgrihhlrdgtohhmpdhrtghpthhtohepmhhitghhrggvlhes phgrqhhuihgvrhdrgiihiidprhgtphhtthhopehpghhsqhhlqdhhrggtkhgvrhhssehpoh hsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: ie3de48e3:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 16 Feb 2026 11:32:29 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kurilemu.de; s=schmee; t=1771259547; bh=N1vUHXcGxG5ibKWpk+lSvs+uZj89XJlEJssThpr8908=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=IgbDKchk6q87m6SHIonN+P+7qU9SYZlQHMdu+WahuFO5E5P67mtBXy51RfWJyhZL4 VQWTf8mz2LFtLuRXTnIh0Md0V9iULOEhzfAFyk27XoWlX83f/SH+5weD+hzeGArFNP J//I7RobnJftsDe+l0cebTq9/6Iz5GAZWFBtc4oE7t8ef+dSO+2GKYZrFuGweVZ569 9wHgdMU04OZ8jvBCEDFGP1a17BpKzDQUGReIJdBigPCnkizWsQtYpyqGpcQCFiw9jF Lv62iH/XSv9HHgvFjlQe6JwmK8dg4oE/w0Rdh9Nne1yOgiIijJJbq5+WvjE8qTuyeS X1BLtySf5Qx4w== Received: by schmee.kurilemu.internal (Postfix, from userid 1000) id EB12E7A; Mon, 16 Feb 2026 17:32:27 +0100 (CET) Date: Mon, 16 Feb 2026 17:32:27 +0100 From: Alvaro Herrera To: Amit Kapila Cc: Chao Li , Andres Freund , pgsql-hackers@postgresql.org, Michael Paquier Subject: Re: pgstat include expansion Message-ID: <202602161622.cu4mpoh445mg@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2026-Feb-16, Amit Kapila wrote: > How about moving LogicalRepWorkerType to logicalworker.h as in the > attached and then include that in pgstat.h? This requires few other > adjustments as previously some of the includes were working indirectly > via worker_internal.h. Yeah, I think the inclusion of worker_internal.h in pgstat.h is catastrophic, and the additions of .h files that you propose to fix them after the removal look OK to me, though I didn't try to compile or run headerscheck, though you should before pushing. I'm not sure about including logicalworker.h in pgstat.h though, given the prototypes you have there ... the logical worker type enum does not fit together with those IMO. Maybe it'd be better to add a new file for pgstat_subscription.c and pgstat.h to use, where this enum lives. (Maybe something like src/include/replication/pgstat_worker.h or src/include/replication/worker_stat.h ?) -- Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/ "La espina, desde que nace, ya pincha" (Proverbio africano)