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.94.2) (envelope-from ) id 1ri8el-00FM4V-94 for pgsql-hackers@arkaria.postgresql.org; Thu, 07 Mar 2024 07:59:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1ri8ej-002tQO-Qo for pgsql-hackers@arkaria.postgresql.org; Thu, 07 Mar 2024 07:59:10 +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.94.2) (envelope-from ) id 1ri8ej-002tQG-E5 for pgsql-hackers@lists.postgresql.org; Thu, 07 Mar 2024 07:59:10 +0000 Received: from mail-lj1-x235.google.com ([2a00:1450:4864:20::235]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1ri8eg-003E8H-Qr for pgsql-hackers@lists.postgresql.org; Thu, 07 Mar 2024 07:59:09 +0000 Received: by mail-lj1-x235.google.com with SMTP id 38308e7fff4ca-2d3fd0e6832so4966841fa.2 for ; Wed, 06 Mar 2024 23:59:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aiven.io; s=google; t=1709798344; x=1710403144; darn=lists.postgresql.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=u9KGHG2rDaoxjtQMCqILfkmzkEcEnZlaFaCGrQSUvqk=; b=lnXFQcyxSm88dAI9QjN1mmChKGpOHG+A6NBImMeiSq9Lf12AD4ry2AjEGRY6fjR1rs +MsITz1tOHCGcWf77fr4GuATr+4FHAUF+IpBIKXi0thVEIHwEs56xfDcCLS5zMjRvb2q T4Gu2/p31Y1xoJbz3PYRN9SsEVvvrX3A9dqqo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709798344; x=1710403144; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=u9KGHG2rDaoxjtQMCqILfkmzkEcEnZlaFaCGrQSUvqk=; b=GB+JiNjIAI1bykGV++h57RHUTnKDLFmOX2oJwjR872hHwd5Jnb7XxukyT6dE0wnqCn sZlMa2LW1kYQwcUcAwgHGEnaR79NRy6x0PYsmKkXeaKaUYW+Rk9dd8Y6n2GvHlTxrZVg 1CjcxT/dqRDOxzCkTaICQZXATuNFKhyteP7eKtRF/FxDCzbAWFnTKHWt1Lvr+ERM8O9l XQN7EoQIkEqY+YuEl5cyL6Q8vyrEhEd1ktAfE/Z25UKcch5Ex9DW2inECmBcQ5O85pMh 5/eJDfRGapMdMDFWNmYnshHjhh1XcKiinZ1C60NYW096p/z1f941VhPcrGATrKvr5pr2 sdgw== X-Gm-Message-State: AOJu0YzaniNGNy8EcfZYeGzG5bTI1VqHXFbLY9kWO2OLcJ/YzL8dzWOC VFsDJVDUY4TrDaW9Z7CDxRnO8bE2apJXX06vVFNiSczLHJgM0WUem3cal0nRX8FHoN8aGUBdJsE F X-Google-Smtp-Source: AGHT+IFjsoLAWpZTkYkhR+F5q0wTaOU3qYw9N8Ysc13pKpXcf+63Wb6vo2cD02Z2LTmO4568yucRhA== X-Received: by 2002:a2e:9f47:0:b0:2d2:ad40:a7de with SMTP id v7-20020a2e9f47000000b002d2ad40a7demr753802ljk.20.1709798344414; Wed, 06 Mar 2024 23:59:04 -0800 (PST) Received: from aivenlaptop.localnet ([45.13.105.93]) by smtp.gmail.com with ESMTPSA id v9-20020a05600c444900b00412f8bf2d82sm1721643wmn.28.2024.03.06.23.59.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Mar 2024 23:59:03 -0800 (PST) From: Ronan Dunklau To: Stephen Frost Cc: pgsql-hackers@lists.postgresql.org Subject: Re: Provide a pg_truncate_freespacemap function Date: Thu, 07 Mar 2024 08:59:02 +0100 Message-ID: <4331161.ejJDZkT8p0@aivenlaptop> In-Reply-To: References: <5446938.Sb9uPGUboI@aivenlaptop> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="nextPart2183423.Mh6RI2rZIc" Content-Transfer-Encoding: 7Bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --nextPart2183423.Mh6RI2rZIc Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" Le mercredi 6 mars 2024, 20:28:44 CET Stephen Frost a =E9crit : > I agree that this would generally be a useful thing to have. Thanks ! >=20 > > Does that seem correct ? >=20 > Definitely needs to have a 'REVOKE ALL ON FUNCTION' at the end of the > upgrade script, similar to what you'll find at the bottom of > pg_visibility--1.1.sql in the tree today, otherwise anyone could run it. >=20 > Beyond that, I'd suggest a function-level comment above the definition > of the function itself (which is where we tend to put those- not at the > point where we declare the function). Thank you for the review. Here is an updated patch for both of those. Best regards, =2D- Ronan --nextPart2183423.Mh6RI2rZIc Content-Disposition: attachment; filename="0002-Provide-a-pg_truncate_freespacemap-function.patch" Content-Transfer-Encoding: 7Bit Content-Type: text/x-patch; charset="x-UTF_8J"; name="0002-Provide-a-pg_truncate_freespacemap-function.patch"