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 1vM90D-0029Xj-1g for pgsql-hackers@arkaria.postgresql.org; Thu, 20 Nov 2025 18:03:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vM8zC-003JHP-2e for pgsql-hackers@arkaria.postgresql.org; Thu, 20 Nov 2025 18:02:27 +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.96) (envelope-from ) id 1vM8zC-003JHG-1g for pgsql-hackers@lists.postgresql.org; Thu, 20 Nov 2025 18:02:26 +0000 Received: from fhigh-a3-smtp.messagingengine.com ([103.168.172.154]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vM8zA-000ac0-12 for pgsql-hackers@lists.postgresql.org; Thu, 20 Nov 2025 18:02:26 +0000 Received: from phl-compute-05.internal (phl-compute-05.internal [10.202.2.45]) by mailfhigh.phl.internal (Postfix) with ESMTP id 725991400130; Thu, 20 Nov 2025 13:02:22 -0500 (EST) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-05.internal (MEProxy); Thu, 20 Nov 2025 13:02:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ilmari.org; h=cc :cc:content-transfer-encoding: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=1763661742; x=1763748142; bh=ciA5v+ia/to5pJJA6k14EB2XN/g/ZjQoItDmQ9DkOfI=; b= lMJs3xUtC8hGKJ6pfhIWVNq81ibd/M1C/ihescY7irWjXZEPR1YOWR45C5AnDQU0 2LgP6ovThN5g3IvkyMABQVyVb04OKWaqvwjYTUHTI5HQCQXuM20ZOtspVeVXgmkt pPkhQaKhj80W5Pzk1if+qNtFr8HlEkVrloGe40h5ueWnW0t+GEws1oUxMmfkJUY6 evWrkd21q+56A5q8Dv+iCwQ9pjSbAsa1p8QbBNamYypsPN3wzesgCsATbkECHBEs Bb3kqWf+f1cJRIAU0kfcbOGKZy4Q1Y3Kc2yMOok80n7sJVlsac5l/6gPBZskTO8T zn4hO30/DbOk6+/o4+hW0g== 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 :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1763661742; x= 1763748142; bh=ciA5v+ia/to5pJJA6k14EB2XN/g/ZjQoItDmQ9DkOfI=; b=E +IFDZP4Y1W7iQQOwIBZeAt0M0skUEEVXI7xXJGgG76LQPIQlg7DhVn7Ht+dzWCg2 k15m3cbBCZRDhtNVA9hDFzcrdfNr9ugm7aLnvED4Y/Pl4Dsqw2PwQsNAXK8iGpNj Hvao0LQbPaoNLP4WulSVd9yyWlWXLGLBLHal9iuQ9xHXUoFhYLGYYfSgUn1dTGqi f/JVOqukjkjLpX2yiVhrGxckjM88M6rGEwZp+EcOvDowy6kY3CPoY8/prWIZJD+j PpHEPofKpLy5t2kcio71JogZaZRNOFar8cgquRFB4MdyqhDKsjYetMLWGKxhnqx8 bI2h9/WTEeoS2CdSHEGRQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggddvvdejjeehucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhephffvvefufhffjgfkfgggtgfgsehtkeertddtreejnecuhfhrohhmpeffrghgfhhi nhhnucfklhhmrghrihcuofgrnhhnshonkhgvrhcuoehilhhmrghrihesihhlmhgrrhhird horhhgqeenucggtffrrghtthgvrhhnpedtjeevueejgeejvdffuedujeethffhhefgtdfh ieejffekveekgfdtffejhfdtieenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmh epmhgrihhlfhhrohhmpehilhhmrghrihesihhlmhgrrhhirdhorhhgpdhnsggprhgtphht thhopeejpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehhlhhinhhnrghkrgesih hkihdrfhhipdhrtghpthhtohepphhgshhqlhdqhhgrtghkvghrsheslhhishhtshdrphho shhtghhrvghsqhhlrdhorhhgpdhrtghpthhtohepgiegmhhmmheshigrnhguvgigqdhtvg grmhdrrhhupdhrtghpthhtoheprhhosggvrhhtmhhhrggrshesghhmrghilhdrtghomhdp rhgtphhtthhopegrnhgurhgvshesrghnrghrrgiivghlrdguvgdprhgtphhtthhopehrvg hshhhkvghkihhrihhllhesghhmrghilhdrtghomhdprhgtphhtthhopehmvghlrghnihgv phhlrghgvghmrghnsehgmhgrihhlrdgtohhm X-ME-Proxy: Feedback-ID: i1ff147bf:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 20 Nov 2025 13:02:21 -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> <87see87fnq.fsf@wibble.ilmari.org> Date: Thu, 20 Nov 2025 18:02:20 +0000 In-Reply-To: <87see87fnq.fsf@wibble.ilmari.org> ("Dagfinn Ilmari =?utf-8?Q?Manns=C3=A5ker=22's?= message of "Thu, 20 Nov 2025 17:55:05 +0000") Message-ID: <87pl9c7fbn.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; charset=utf-8 Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Dagfinn Ilmari Mannsåker writes: > 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, > }; D'oh, my mail client untabified the .buffer line while I was editing it, that should of course be: PruneFreezeParams params = { .relation = rel, .buffer = buf, .reason = PRUNE_VACUUM_SCAN, .options = HEAP_PAGE_PRUNE_FREEZE, .vistest = vacrel->vistest, .cutoffs = &vacrel->cutoffs, }; - ilmari