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 1vXr2f-007c2q-0b for pgsql-hackers@arkaria.postgresql.org; Tue, 23 Dec 2025 01:18:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vXr2c-00Gv19-0K for pgsql-hackers@arkaria.postgresql.org; Tue, 23 Dec 2025 01:18:22 +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 1vXr2b-00Gv10-2Q for pgsql-hackers@lists.postgresql.org; Tue, 23 Dec 2025 01:18:22 +0000 Received: from mail-ed1-x529.google.com ([2a00:1450:4864:20::529]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vXr2a-0026Y1-1n for pgsql-hackers@lists.postgresql.org; Tue, 23 Dec 2025 01:18:21 +0000 Received: by mail-ed1-x529.google.com with SMTP id 4fb4d7f45d1cf-64b5ed53d0aso6350065a12.3 for ; Mon, 22 Dec 2025 17:18:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1766452697; x=1767057497; 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=nnwL+kU0wEY+AvKyWEch/WmKckz5US+ZEj5+vrHH3eg=; b=ClU5mHpplcgzeqkdcRQKlatflRSTSZ8ITOWIlgNsjjUS86g+8k5YAQKHhyhKjdtyzI hRdnddRXZ1SWiVkhD/J9uGzTRDrobqqSkMN3iOabahSLThqClp2AlWFH+6+z/hovTae8 +nNjWxXQ29ou081O7jCPi9fXGRD86Q69HJjQhsLt5/t5eGfiE5dlYiXonBNSoi0+QsJQ /ltF0Y9ys/Aovafy4ho9hbkoJEfFrZFVH0K0hJgzl0ryhWddPjD4Ie8Iy34qmiMg9I4H 0GZtm4DQ61qmlXupRlNnKRT3r+Ia8EwvmfBFr9RRwbFORh+iQVnBAWDNAl88jOslPBCo mfhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1766452697; x=1767057497; 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=nnwL+kU0wEY+AvKyWEch/WmKckz5US+ZEj5+vrHH3eg=; b=FZNY1Czp7bNJBZhOaIUmaTXEiWuv5wgvMegaf/r6fy8h0dfqOPlyU6CgTcqBNibwCI guNCQ5STqxqxCr2iAm/eSxDUHi1/tgcs7WBWs/0EAwNgO11xiwxirkgVpzA1EIV0ENmP Z9a0poBFDXoSVPfcPd8o+cGhBckWGz/ptvAr/dITF1vEaKzNpYEh+LCuEwQQ+6Zsox+w yrRITJO7hQdI1sISmvSJcV8TTeV7OgHg7WQUFnuzu5dmUB29xqA2qUNs/Fh+k+3HaoSy 6utOm+dQTH4lzts7Fs4LDqy+pByRz6VNu4953Glj9rn6gYeB387CPeroqlbSKN/qf4TP vJRg== X-Forwarded-Encrypted: i=1; AJvYcCUaKYKG7XRC4SMcf8IjFCdImXp/cflZDgACaijg7CJkGZqyhYgpxtTwrOJFWAI/T6PFr1g74ApPobRWgE/G@lists.postgresql.org X-Gm-Message-State: AOJu0YzI8YjEMS4Z49GVQrOy18Wrs9b+LeX9Ldj3H8vLV2N7DlnUmoV6 whq+G5lUN8mblEnNq08phRdWtZZ++5wb80nvw2/NNd5WomrZl+oUJsUSXVIYhr50HxmVo2+lQkJ FZJ9OTYyUnQeTrWh3UoFU4GF206jr8IE= X-Gm-Gg: AY/fxX67/cQzEnzkyD0OlisheZB9arTEIzyctR7KM8mzu8D5/5P2oKD6oGnaJlEp7GE 9DxJwX+YakwEI6Gub3y9Q5+ytCP3C6Z3Vab7coIw7ybOezP1qWC4J4N/QOH2sPanxqUmjmbKaRt GLic/1Uvfz6w0rUnic+UYLqYBPZeBhUnPRd4sg+tPqPRo5EgJMIlahNeauTU+iV6z8YfHzHUkJ2 41foEyDga26y4O8vNBTBSq18+d3HJlszvtffoKJggeevVBe4N/r40ncNRweCfRNDFXvlg93 X-Google-Smtp-Source: AGHT+IFanUSP0mJMdsu6N98pjeQTae4NGE7cZ/Y8iJBuZd88UKCrv6jfhPIkrrCq3sVcj417dQ6mlkCxo+/074JzuTY= X-Received: by 2002:a05:6402:510d:b0:64b:7eba:39ed with SMTP id 4fb4d7f45d1cf-64b8eb618f5mr11768383a12.13.1766452697092; Mon, 22 Dec 2025 17:18:17 -0800 (PST) MIME-Version: 1.0 References: <2wk7jo4m4qwh5sn33pfgerdjfujebbccsmmlownybddbh6nawl@mdyyqpqzxjek> <6BC5DBAB-6084-4BB8-8450-52E9648AB021@gmail.com> <7F5BCD7A-764D-4D8D-8E27-6F2CAAEA1CEE@gmail.com> In-Reply-To: <7F5BCD7A-764D-4D8D-8E27-6F2CAAEA1CEE@gmail.com> From: Melanie Plageman Date: Mon, 22 Dec 2025 20:18:05 -0500 X-Gm-Features: AQt7F2q5kh6yM-PRU5zH2NYtKRcG5hGm-ct_yIYH4390IJrpICnm6kpisclHtPs Message-ID: Subject: Re: eliminate xl_heap_visible to reduce WAL (and eventually set VM on-access) To: Chao Li Cc: Xuneng Zhou , Andres Freund , Kirill Reshke , 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 Mon, Dec 22, 2025 at 7:01=E2=80=AFPM Chao Li wr= ote: > > > On Dec 23, 2025, at 01:57, Melanie Plageman = wrote: > > > > My hesitation is that visibilitymap_set() is in a header file and > > could be used by extensions/forks, etc. Adding more information by > > changing a return value from void to non-void doesn't have any > > negative effect on those potential callers. But taking away a return > > value is more likely to affect them in a potentially negative way. > > > > However, I'm significantly changing the signature in this release, so > > everybody that used it will have to change their code completely > > anyway. Also, I just added a return value for visibilitymap_set() in > > the previous release (18). Historically, it returned void. So, I've > > gone with your suggestion. > > From a previous patch, I learned from Peter Eisentraut that =E2=80=9CWe d= on't care about ABI changes in major releases.=E2=80=9D, see: Right, it is totally okay to change function APIs in a major release. My point was not that it wasn't allowed but that if people are getting useful information returned from that function, or if we think we might want that information again in the future, we should think twice before changing it. But, in this case, I think we don't need to worry about it. - Melanie