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 1wAnbb-000LrE-0j for pgsql-hackers@arkaria.postgresql.org; Thu, 09 Apr 2026 11:31:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wAnbZ-005VYb-1z for pgsql-hackers@arkaria.postgresql.org; Thu, 09 Apr 2026 11:31:26 +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 1wAnbZ-005VYP-14 for pgsql-hackers@lists.postgresql.org; Thu, 09 Apr 2026 11:31:26 +0000 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wAnbX-000000009oI-2yEA for pgsql-hackers@lists.postgresql.org; Thu, 09 Apr 2026 11:31:25 +0000 Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-48334ee0aeaso7783075e9.1 for ; Thu, 09 Apr 2026 04:31:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1775734283; x=1776339083; darn=lists.postgresql.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=M3odlAKX42E+Y9Dj/Q526D1RN2cMDFV+yQDYfcV102I=; b=AR4AiHx25JEcg0b5TXXMaediu14/LZGEOi5bjZimrgWetXLWoaSWn8drEh84TwNm62 BREsQfqIQL3xzWQaPkkjXKkGGQ0yAORCeTyYBKfdPzdEtzqF8xn3kK62+OhlqKom26qm 4bWVaJbtXUTD7omPOii7o9q+Csw9/IuoNtdFaTI9UZoZ3sCQdE6rVCGrb/syB1WIRUlT tUD0yywfeXjBXpoQT031BmXRD274s4J6IgXiEVBkENH2mFJDfkPsGK7xoeSdrDmio0rD yZUgOIlkrNk5dmqQFWEhv2H3PEgNK6D72uVCDI1PIQZM2bVGNX5+JhwoGMBce2V29Mto 7DXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775734283; x=1776339083; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=M3odlAKX42E+Y9Dj/Q526D1RN2cMDFV+yQDYfcV102I=; b=e1MJdP869880lrOhbR/M/oQCyjV+04TXxzWa2F6HpU/ogWgqSotBxCrpW2kthoSH3L ow6N1+QdwgV4wDf3qmDkdN4R6Gxy7nYdFgK3g18XuHOI7CfS5RhZu0euUko7vcbYxPV5 jD55a0GkpotF1gPtthvniO+UFqxYURQqsIw7pco29nxIULvRtbdB9Eo07SX6D6scpuDx NbO1mvOazJA94HXTwTYUZed0MNaoos5ucbLkeTX4giyPGRUV8AIb9fzX5jKg4h4CUugV Y7SmOyaA2N2ioW+K4+FhuH4CYQTI70srQrIlhwMsp5xf/Mg7AB4Nxceo6fWQUSPpdqcP s8iw== X-Forwarded-Encrypted: i=1; AJvYcCV690fizLAfNoxeSUX/DArPssUcZzMRnqUjq4WF8bvPRJs2hXd87IwnyjR9v8mvj2n22jZEKxcyHljO71Lr@lists.postgresql.org X-Gm-Message-State: AOJu0Yyd74/CdqD3ayo5RHnszC0EjBs4oIlK2nfrEqXda2RhIELe7Qkr AfGqic0bkA7O0F1qu2QL4O9NupFYR/89sxKK6S+8anNJMbFQBn1Eern8 X-Gm-Gg: AeBDieszDlXDntS4Q2dlcxm4MY3d29sqeaNvoft7GlcosqAsjN3TMK60k99iYaFufD7 huQreSC/diDsRb+eWwiqj1lcAiUnr6n1Nlo36h/iWUJhXvl6blRr24ktXp4jFwghKza+93BQ9ox fAbJcctStBk5UigPE1rJyXPw0HKgeoEN6j2DfJgsHCr4ewfdFKhQzzGIGbP6nlkJNQ+UHTdDj6Q vhrmidNuBQLNP6W3MIod/mWWWR0QL2P5OmwqrQsSmio/cLpUlHqpIta7xyQQZrq/NYwn22K4t0F RSUPRia1e3hu5nQyAPt3W6GjhfgaT0MnjF5iYyX1EGnDnaA1Dg98lNnPQv5gBqKKgoUtm01T7iy 7/J+ou6jOHrdRQ6OwLsBWEWN6syrmh4fXYlD111zVdu1Dpd/aa9ScrDl8jT+B7gBKOZT/2WwFq1 Qez7ZQC8gupr2fBBrfLFn0+ZdjCiVaYfO6+LCZAUWa3SM2E+8q6MiOnzfI9edFyiY3YR0zq5Khf tR4LyB3bHOGtgb4EY+Ymhq9E8lgk2kEF0PpA6TJqIwDU+tr3oVorEI2tg== X-Received: by 2002:a05:600c:8b0d:b0:485:364e:9328 with SMTP id 5b1f17b1804b1-488ca398449mr81056765e9.16.1775734282447; Thu, 09 Apr 2026 04:31:22 -0700 (PDT) Received: from ip-10-97-1-34.eu-west-3.compute.internal (ec2-15-237-197-144.eu-west-3.compute.amazonaws.com. [15.237.197.144]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-488cd10b35bsm22500025e9.15.2026.04.09.04.31.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Apr 2026 04:31:22 -0700 (PDT) Date: Thu, 9 Apr 2026 11:31:20 +0000 From: Bertrand Drouvot To: Michael Paquier Cc: Thomas Munro , PostgreSQL Hackers Subject: Re: [[deprecated("don't call this, call that")]] Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On Thu, Apr 09, 2026 at 12:42:36PM +0900, Michael Paquier wrote: > On Thu, Apr 09, 2026 at 03:34:30PM +1200, Thomas Munro wrote: > > The idea would be to back-patch the deprecation warnings, and delete > > the functions in, I guess now, v20. Then the deprecation notice > > facility would always be there for next time we need it. > > That would be a nice addition, especially with the recent mblen() > business (could have used that a few times myself). So +1 for the > addition of the macro in the back branches. > > Do we need to be that conservative with the removal in v19? We could > just pull the deletion switch without waiting for v20, IMO.. With the > deprecated macro in place, at least folks would be aware of the > problem. +1 on the idea. FWIW it has also been proposed in [1]. Also good candidates are XLogRecPtrIsInvalid() and StaticAssertStmt(). Note that a recent commit made use of StaticAssertStmt(), see [2]. [1]: https://postgr.es/m/aRGa87Ab0f3ItWRV@ip-10-97-1-34.eu-west-3.compute.internal [2]: https://postgr.es/m/adeNWH5pDawDvvR2%40ip-10-97-1-34.eu-west-3.compute.internal Regards, -- Bertrand Drouvot PostgreSQL Contributors Team RDS Open Source Databases Amazon Web Services: https://aws.amazon.com