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 1vM8sF-0026b1-03 for pgsql-hackers@arkaria.postgresql.org; Thu, 20 Nov 2025 17:55:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vM8sD-003H8A-21 for pgsql-hackers@arkaria.postgresql.org; Thu, 20 Nov 2025 17:55:13 +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 1vM8sC-003H81-1o for pgsql-hackers@lists.postgresql.org; Thu, 20 Nov 2025 17:55:13 +0000 Received: from fout-b1-smtp.messagingengine.com ([202.12.124.144]) by makus.postgresql.org with smtp (Exim 4.96) (envelope-from ) id 1vM8s9-000Z0q-24 for pgsql-hackers@lists.postgresql.org; Thu, 20 Nov 2025 17:55:12 +0000 Received: from phl-compute-11.internal (phl-compute-11.internal [10.202.2.51]) by mailfout.stl.internal (Postfix) with ESMTP id DB42F1D001BE; Thu, 20 Nov 2025 12:55:08 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-11.internal (MEProxy); Thu, 20 Nov 2025 12:55:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ilmari.org; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm2; t=1763661308; x=1763747708; bh=4bAjwLI0H2 1G2LNgk7sGtpswvIM3DApW5OLSmSQY+Ts=; b=ci+B/2j2gVnoxZWJZuPlIkz/7O wDBTWrwT1BMoSgA2VWyUKYxTTBphKeFANoYrhXLgZaQQOyPeyyf9irUAXN6KKooj cB+SeTHo0myOC27tNJMpJchHvr2X0Su99lDnLexmXc43JAt0TEW/9nv44c6H3WLY rpTkVhqksGj6N44xbCTLyshbrgx8NmqOqLJseq3/vqgmvHhqyiwhLNrRcaV8vDYq nkLBnyUG+qRUw/e+9Wb6sIH5OWCVJwlirnhSKFfXGzTnINFuNLLL0JPNVCPuyGxc yHGCMSbSO374hR1oLdP60mdOfmAkM/NZC7ZixnF2bTXkVcIxxYT+ecQ9mJuQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1763661308; x=1763747708; bh=4bAjwLI0H21G2LNgk7sGtpswvIM3DApW5OL SmSQY+Ts=; b=3M7uQ6AhSRd1h7yAcLGBtsh4CZXxRHDtiTPh8bcEvLoloYIkdg0 391XJibuxBSKSPMDzw32QA0dESQNINXAIsFRARx3eg/JJjZiOsUB1Neunv0sraQ0 UUN5g3FEzw3oPyfcsyY5TJYPzCzN9XhKWkLjO1yefQuvu9O9Qnd5Q6Gi9rAJbjsN C6XDeRLuNBJDpCl53Ekq33W+UMFSn7vQPHy2MfURDGtBau/EEJeVUK5rQ5rPb54C k/uK3ucMPgNUQ0603v/2qJBncbAtQquk28xgsQJPQcnOcLB42iq0TGPJRgJ25ZZl z+xbI4bTT9dnShEiVMC0Mm5IZbRUzZqJbGA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggddvvdejjeegucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhephffvvefufhffjgfkfgggtgesthdtredttderjeenucfhrhhomhepffgrghhfihhn nhcukfhlmhgrrhhiucforghnnhhsnohkvghruceoihhlmhgrrhhisehilhhmrghrihdroh hrgheqnecuggftrfgrthhtvghrnhepkeeljeeufefhffekhfektdefleeuvdeiiefhheef feefgeegudffudehjeejiefgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpe hmrghilhhfrhhomhepihhlmhgrrhhisehilhhmrghrihdrohhrghdpnhgspghrtghpthht ohepjedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohephhhlihhnnhgrkhgrsehikh hirdhfihdprhgtphhtthhopehpghhsqhhlqdhhrggtkhgvrhhssehlihhsthhsrdhpohhs thhgrhgvshhqlhdrohhrghdprhgtphhtthhopeiggehmmhhmseihrghnuggvgidqthgvrg hmrdhruhdprhgtphhtthhopehrohgsvghrthhmhhgrrghssehgmhgrihhlrdgtohhmpdhr tghpthhtoheprghnughrvghssegrnhgrrhgriigvlhdruggvpdhrtghpthhtoheprhgvsh hhkhgvkhhirhhilhhlsehgmhgrihhlrdgtohhmpdhrtghpthhtohepmhgvlhgrnhhivghp lhgrghgvmhgrnhesghhmrghilhdrtghomh X-ME-Proxy: Feedback-ID: i1ff147bf:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 20 Nov 2025 12:55:07 -0500 (EST) From: =?utf-8?Q?Dagfinn_Ilmari_Manns=C3=A5ker?= To: Melanie Plageman Cc: Kirill Reshke , Andres Freund , Robert Haas , Andrey Borodin , PostgreSQL Hackers , Heikki Linnakangas Subject: Re: eliminate xl_heap_visible to reduce WAL (and eventually set VM on-access) References: <2wk7jo4m4qwh5sn33pfgerdjfujebbccsmmlownybddbh6nawl@mdyyqpqzxjek> Date: Thu, 20 Nov 2025 17:55:05 +0000 In-Reply-To: (Melanie Plageman's message of "Wed, 19 Nov 2025 18:13:30 -0500") Message-ID: <87see87fnq.fsf@wibble.ilmari.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Melanie Plageman writes: > + PruneFreezeParams params = {.relation = relation,.buffer = buffer, > + .reason = PRUNE_ON_ACCESS,.options = 0, > + .vistest = vistest,.cutoffs = NULL > + }; I didn't pay much attention to this thread, so I didn't notice this until it got committed, but I'd like to lodge an objection to this formatting, especially the lack of spaces before the field names. This would be much more readable with one struct field per line, i.e. PruneFreezeParams params = { .relation = rel, .buffer = buf, .reason = PRUNE_VACUUM_SCAN, .options = HEAP_PAGE_PRUNE_FREEZE, .vistest = vacrel->vistest, .cutoffs = &vacrel->cutoffs, }; or at a pinch, if we're really being stingy with the vertical space: PruneFreezeParams params = { .relation = rel, .buffer = buf, .reason = PRUNE_VACUUM_SCAN, .options = HEAP_PAGE_PRUNE_FREEZE, .vistest = vacrel->vistest, .cutoffs = &vacrel->cutoffs, }; I had a quick grep, and every other designated struct initialiser I could find uses the one-field-per-line form, but they're not consistent about the comma after the last field. I personally prefer having it, so that one can add more fields later without having to modify the unrelated line. - ilmari