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 1vMD3o-003sJN-0Q for pgsql-hackers@arkaria.postgresql.org; Thu, 20 Nov 2025 22:23:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vMD3m-004hL8-0d for pgsql-hackers@arkaria.postgresql.org; Thu, 20 Nov 2025 22:23:26 +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 1vMD3l-004hL0-2u for pgsql-hackers@lists.postgresql.org; Thu, 20 Nov 2025 22:23:26 +0000 Received: from mail-ej1-x62b.google.com ([2a00:1450:4864:20::62b]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vMD3j-000cht-3D for pgsql-hackers@lists.postgresql.org; Thu, 20 Nov 2025 22:23:25 +0000 Received: by mail-ej1-x62b.google.com with SMTP id a640c23a62f3a-b725ead5800so183025366b.1 for ; Thu, 20 Nov 2025 14:23:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1763677397; x=1764282197; darn=lists.postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=GZw/NG1QCn/dtNTDPjwQzJ29a5L0EOuXgq9mF8eY9Xs=; b=dm5C7/lxXHvhBpggk7RJwxdIH+Ecx2e9fIuRj1I6T3frv1YzzhDT8GOVQWMXGPrj8m T00rCQ2NwvW9GYvJhrceALPRIAXmilcSZKApp05YKI9V9h7kO5Y6VIc17ZlT8T4VWJUT g0CcuWy4fjknIMbPwHSfwk+PQGpCfZrv2ZqNF/NkP76Qk5EhBLbBilsc/6nsa/2rlOYl y9d4eZv1SbKokCynWFtaZ2lYHkQWRSO8nhjrwhntvMWCPaRh890WmjfqakpxWZrEec2Y Spds69IX/4JB0jd2cpCCL5qcmOo1BuCuo9LsHQC6hzvxihVRcOhXLUjNQcR/vuGiFfI/ J7Yw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763677397; x=1764282197; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=GZw/NG1QCn/dtNTDPjwQzJ29a5L0EOuXgq9mF8eY9Xs=; b=wsnTv3b0vlU0oSHHGuZEEsYJlI1QfwMA9h0bHzSvNV19OMXjQmqXYvJon/wlG1lyOW hLTtXw/VuOYShFRV8FHpm+KNHTOk87/mldB3tHsOO1iXRBwgksWmxl/USabdMNRqt1U3 1pHQ/AZRDnX9Mh2UUDBwkd6cYyXwyQmgz3h9EHGdFROAQIFwh9H9EwZ8Y6kHyazq0MUz KBmXsYcmGDrTvjNMThnwjQ30pg8B9upCdScKmBJid8bMsa6mFIXV1OxymmCE07H/EGDX dvPyf0dq4fpnrmtuMfa8I0DhpJiAlFed8fkR9THTkpLJbag/L/l04FZ2piaT9rgw6mcr UShQ== X-Forwarded-Encrypted: i=1; AJvYcCUykevZj+x52c9QcKm1k8IOivZ8VuQiNo2kjag3dcvi409RbSgPAKfDfbigTymmEM5VnHv46ZnmGjS5mXPw@lists.postgresql.org X-Gm-Message-State: AOJu0Yy0YBpJX8dvFEyt3EGfHoLcO+2V2VNtmWz7euoctsUD8BlwrR7w KIgzDM8gNhwfa/GTYscpTH5tGGX8La9SHYKqo1tiCJxunYnp4ZGSqzsmj/3zogzZaho4peBllgU anJWa5Y31cUY31OEsOALe0nFQm2HKFUY= X-Gm-Gg: ASbGncs6zmWOgFFpjsClDMB0EBpXvFLwHFtiZ90owfbjEQo4+7OFodEDvApafuN0Tex k3cZkPylA96e4P2ljzwiJKLDYOG8AX5JJK3eScowfr7amYHDUyPSj2ng6cJZxYrtFVkmwDFbinL jIBlWFlylpRog73aTbaveUa+u9rg1taMnEIBosxOjWAbwvQCRK5PTRh3NPd7ex4vWMiXugE41ec MULIXY6K4LKB5xekSObKhXYTx8+bU2IJ97EASp4cF/CUoHPgv9WlI4ESIO7zMssQdoAUvgq X-Google-Smtp-Source: AGHT+IE99xZ6QD5V2cSBaJKJSi55SeACfPJlxv9SHM29xauTsleZgZrxhnFK0DdSqL6OwPDiJyxY6it7kbK/W/G71o0= X-Received: by 2002:a17:907:7286:b0:b73:6838:802c with SMTP id a640c23a62f3a-b7654ebfaa7mr540846966b.42.1763677397523; Thu, 20 Nov 2025 14:23:17 -0800 (PST) MIME-Version: 1.0 References: <2wk7jo4m4qwh5sn33pfgerdjfujebbccsmmlownybddbh6nawl@mdyyqpqzxjek> <87see87fnq.fsf@wibble.ilmari.org> In-Reply-To: <87see87fnq.fsf@wibble.ilmari.org> From: Melanie Plageman Date: Thu, 20 Nov 2025 17:23:05 -0500 X-Gm-Features: AWmQ_bn2dp8k3Ln5t2VJwCdEcnjOnKne43Qtvkzs8aJN-X3JLNHqRY5M_vVBHDw Message-ID: Subject: Re: eliminate xl_heap_visible to reduce WAL (and eventually set VM on-access) To: =?UTF-8?Q?Dagfinn_Ilmari_Manns=C3=A5ker?= Cc: Kirill Reshke , Andres Freund , Robert Haas , Andrey Borodin , PostgreSQL Hackers , Heikki Linnakangas Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, Nov 20, 2025 at 12:55=E2=80=AFPM Dagfinn Ilmari Manns=C3=A5ker wrote: > > 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 =3D { > .relation =3D rel, > .buffer =3D buf, > .reason =3D PRUNE_VACUUM_SCAN, > .options =3D HEAP_PAGE_PRUNE_FREEZE, > .vistest =3D vacrel->vistest, > .cutoffs =3D &vacrel->cutoffs, > }; > > or at a pinch, if we're really being stingy with the vertical space: > > PruneFreezeParams params =3D { > .relation =3D rel, .buffer =3D buf, > .reason =3D PRUNE_VACUUM_SCAN, .options =3D HEAP_PAGE_PRU= NE_FREEZE, > .vistest =3D vacrel->vistest, .cutoffs =3D &vacrel->cutof= fs, > }; > > 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. pgindent doesn't allow for a space after the comma before the period. One reason I used struct initialization was to save space, so I'm a bit loath to put every member on its own line. However, I don't want to make the code less readable to others. So, I will commit an update as you request. - Melanie