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 1vveq7-00COFq-1c for pgsql-hackers@arkaria.postgresql.org; Thu, 26 Feb 2026 17:07:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vveq6-00EVJt-0W for pgsql-hackers@arkaria.postgresql.org; Thu, 26 Feb 2026 17:07:50 +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 1vveq5-00EVJU-0z for pgsql-hackers@lists.postgresql.org; Thu, 26 Feb 2026 17:07:49 +0000 Received: from fhigh-a6-smtp.messagingengine.com ([103.168.172.157]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1vveq2-00000001KkX-0n3m for pgsql-hackers@postgresql.org; Thu, 26 Feb 2026 17:07:48 +0000 Received: from phl-compute-06.internal (phl-compute-06.internal [10.202.2.46]) by mailfhigh.phl.internal (Postfix) with ESMTP id 9E82C140019E; Thu, 26 Feb 2026 12:07:46 -0500 (EST) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-06.internal (MEProxy); Thu, 26 Feb 2026 12:07:46 -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=1772125666; x= 1772212066; bh=Z+vpoixPOMDGHuqthKMcNnSOwkKd1k23Cy761EjOPeA=; b=R 1+isrml2uA8E78uVMcqbTYwypTGY5SPrgTsbHR+QYm/Yh7z0WHqQ8qFI8mF5QHfP 2CqPF02mV3t7fiaK6F3qYgAIxq2b76TSrd8X7HVRKCj8Pg7Gqh1Cf96KOFWd3ACL ZzQdWxBxJMA/f19rtBCKrEJhYQR+wQ8pdxdf+jlgD8IZsonSBHQ2NgvDkH/VXws6 3O4rFBjxMFsV4Ps/fqSCMxpziWipnquXB+4fGsJ3ZHBasUxvJvrV2VUHWxlQxs/m x0eHBPsuExORE3FVtsYTaHxO35QvQ2rbjZpJIm+bIPglb8VSvNrj5kawlHdxS41i hOViIYHWUPv6/+ER+jC8A== 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=1772125666; x=1772212066; bh=Z +vpoixPOMDGHuqthKMcNnSOwkKd1k23Cy761EjOPeA=; b=CxegXV53af/8lTRA2 39r0X48IE6HLsuT8bXLNaWIcgo6NOmV7j5Qb5mvqIiuxiGWfVJfop2Ps3EFD+tdF 4nty8c13WwpXDxy9Tyfty4obMilVSewnlQHREO8YPFqOn6sAah8LNFTcHfvoljNV TF0BLjf8M8GJ+cDxGS38MjgKBfHY42yyAiGAncnvWJg30zkUK3RRwHrMdSvclQyg jk8kr5D6rRMSPqxLVDjRysC7jFn8yaU687/hXa6zcAf9fq9hrW4IuaiF/yjXNPWD UCf1t5f0rRcW3mTMThWQUqqqaljQUiwCnSFgmSj1GvM9yTXu3rNvoB29tfUt5tjB J3icA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgddvgeeiiedtucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepfffhvfevuffkgggtugfgjgesthekredttddtjeenucfhrhhomheptehlvhgrrhho ucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsehkuhhrihhlvghmuhdruggvqeenucggtf frrghtthgvrhhnpeeiheehkeekleegueeifedvffegtddugeffheehfeeftdduhfdtkeef leelkeffjeenucffohhmrghinhepvghnthgvrhhprhhishgvuggsrdgtohhmnecuvehluh hsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghlvhhhvghrrhgv sehkuhhrihhlvghmuhdruggvpdhnsggprhgtphhtthhopeehpdhmohguvgepshhmthhpoh huthdprhgtphhtthhopegrnhgurhgvshesrghnrghrrgiivghlrdguvgdprhgtphhtthho pegrmhhithdrkhgrphhilhgrudeisehgmhgrihhlrdgtohhmpdhrtghpthhtohephhhlih hnnhgrkhgrsehikhhirdhfihdprhgtphhtthhopehmihgthhgrvghlsehprghquhhivghr rdighiiipdhrtghpthhtohepphhgshhqlhdqhhgrtghkvghrshesphhoshhtghhrvghsqh hlrdhorhhg X-ME-Proxy: Feedback-ID: ie3de48e3:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 26 Feb 2026 12:07:45 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kurilemu.de; s=schmee; t=1772125663; bh=fPqrjmgA6vqE8XycNMvavBBo5ldJGdptyANDFd/j1rE=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=Vf44QIndsKeexwfcreCYHscMyR7Od2xf+UrreTvotq04JNnsLhOeqaDTublym1c/l J33dq8JF4JlL8c3MSir4hX77SE7eV93n57911OrlbYew/uvifzRh4F69J242yxTQO7 pe8ypYCNr/ZRvrxhW/B4SOsRc4KOy6aPcHd8oUqFjntLDA90ErUWneXlzcR4kU+FFi qn5q5+hbxkTabOpOMNgFCSK4GHPCS+pegyIx/jiZVFyBl+dGZuptHu1amafjJm7Ffm 73eabN7q4bpdFJUgpVKf+tLQMPK9S0PKcSoPgJ9G27DYqm53mRarD/Vxydk/dHd83t pyQKgim7wureQ== Received: by schmee.kurilemu.internal (Postfix, from userid 1000) id 4AFF37A; Thu, 26 Feb 2026 18:07:43 +0100 (CET) Date: Thu, 26 Feb 2026 18:07:43 +0100 From: Alvaro Herrera To: Andres Freund Cc: Heikki Linnakangas , pgsql-hackers@postgresql.org, Amit Kapila , Michael Paquier Subject: Re: pgstat include expansion Message-ID: <202602261706.usyjetzonfxz@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 Hi, On 2026-Feb-26, Andres Freund wrote: > I'm not sure that including in latch.h really would an improvement though - > that's included in proc.h and libpq.h, which both are fairly widely included > [1]. > [1] Although at least the include in libpq.h seems like it could trivially be > replaced by a forward declaration. There's only three .c files that need to be > fixed for that... Okay, let's start there -- pushed that for now. Pity, that we can't remove latch.h from proc.h. That's really where most of the mess is, here ... -- Álvaro Herrera Breisgau, Deutschland — https://www.EnterpriseDB.com/ Essentially, you're proposing Kevlar shoes as a solution for the problem that you want to walk around carrying a loaded gun aimed at your foot. (Tom Lane)