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 1tB8XD-0024SX-Fe for pgsql-hackers@arkaria.postgresql.org; Wed, 13 Nov 2024 08:15:31 +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 1tB8XA-00CEFN-TH for pgsql-hackers@arkaria.postgresql.org; Wed, 13 Nov 2024 08:15:29 +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.94.2) (envelope-from ) id 1tB8XA-00CEFF-8H for pgsql-hackers@lists.postgresql.org; Wed, 13 Nov 2024 08:15:29 +0000 Received: from mail-ed1-x532.google.com ([2a00:1450:4864:20::532]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1tB8X3-001dN0-4X for pgsql-hackers@lists.postgresql.org; Wed, 13 Nov 2024 08:15:27 +0000 Received: by mail-ed1-x532.google.com with SMTP id 4fb4d7f45d1cf-5c9362c26d8so789218a12.1 for ; Wed, 13 Nov 2024 00:15:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aiven.io; s=google; t=1731485719; x=1732090519; 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=gAKih0AMOphbeV6/ljUOkaDfs8hHTt2tKexU04nHrLg=; b=RaLOxFBsuxPGiSYSvH2+g8VO+/jyF8RoaaYhaYcP0nc4IDQaPffIigRohd99WGCeph ZYBzUg4eHdzdzv2xQtkz2EeVftuzun5WdusQ6JYJIAcQ5n2aa0NdFXw20dvbvoXMGtSZ WTXtfb5lTeeQOtoEnegSQGfGYmVGM0JkU04h8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731485719; x=1732090519; 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=gAKih0AMOphbeV6/ljUOkaDfs8hHTt2tKexU04nHrLg=; b=A96niaurh1GRWvIGy025x1NfdNyncW9lsU4MSy39QSm6XwtQML4csrNsN3npWdDmOK qTY2CrbiECtIo6KdnW4pEUTW4RtKhPfDY8qkeSfu0IeNaXaX3xHvnl4dYJCAoU0OheHv ak5LUIOrU3iHEc1cNPj3l1KF2yUthSZ8G/lzArX2HT2vb6qUKKM9r+OdFdeqiQHNWYGI XuyOdxkpA/nO7mELDiFBmaAevhMmKA9DJ3p2UGs8vQCZV/dwNq9ckkJf03HYKtqD6vES 3Jea8Jl/cgWaFxp3zRt1LEh7zK9Dl/2/htU6p8YaU8SMftGUVHjgvBjcTRHWVwExdnEc RWfQ== X-Forwarded-Encrypted: i=1; AJvYcCUq8UXT4Y1aBIhUg8edQoYo/njFJjkZy9EeeDgv4cDNV+ch+QTSss2QB7KCatV69bzNS7dvrKwxYHXHJucr@lists.postgresql.org X-Gm-Message-State: AOJu0YyZNVY3mS6r4CxQdDpJeD9cahqLGDydpdmJVu7w/TmkMvDM+6gJ FH7HxmsJErbtg9CBA3NBoIC7UiYHab4Bw8IwKpCdzKoYUqhiwtY86WtjtAmRIBE= X-Google-Smtp-Source: AGHT+IEOqMOXfrdkMyR0VG5NpZeDVhhvWB6sSpXODkZJ9NcDVREyB71SOKgIik7XXVULJNQLdP6MUw== X-Received: by 2002:a17:907:6d11:b0:a9a:8042:cb9b with SMTP id a640c23a62f3a-a9eeff970cemr2001220166b.20.1731485718996; Wed, 13 Nov 2024 00:15:18 -0800 (PST) Received: from aivenlaptop.localnet ([45.13.105.93]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a9ee0e2f0a9sm823035466b.201.2024.11.13.00.15.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Nov 2024 00:15:18 -0800 (PST) From: Ronan Dunklau To: Michael Paquier Cc: Tom Lane , pgsql-hackers@lists.postgresql.org, Peter Eisentraut Subject: Re: Converting contrib SQL functions to new style Date: Wed, 13 Nov 2024 09:15:08 +0100 Message-ID: <2345099.ElGaqSPkdT@aivenlaptop> In-Reply-To: References: <3395418.1618352794@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="nextPart4935095.GXAFRqVoOG" 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. --nextPart4935095.GXAFRqVoOG Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Le mardi 12 novembre 2024, 09:30:30 heure normale d=E2=80=99Europe centrale= Michael=20 Paquier a =C3=A9crit : > On Thu, Nov 07, 2024 at 10:06:37AM +0900, Michael Paquier wrote: > > Good point. Checking all these contrib updates one-by-one is an ant's > > work, but I'll see if I can get at least some of them done on HEAD. >=20 > I've begun looking at that a bit, and there are a couple of things > that we could do better with xml2 in 0005 at least in the context of > this patch: xpath_nodeset() and xpath_list() don't have any test > coverage. That's not an issue directly related to this patch, but > perhaps we should add something for the functions that we are > manipulating after this upgrade path at least? That's one way to > automatically make sure that these changes work the same way as the > original. >=20 > The same argument comes up with lo_oid() in 0006. Ok, please find attached a new complete patch series including tests for th= e=20 uncovered functions. Tests pass both before and after the move to SQL-body= =20 functions. >=20 > 0004 for pg_freespace is fine regarding that for example as we have > calls of pg_freespace(regclass) in its sql/. I've applied it to begin > with something. Thank you for this one, removed from the new series. >=20 > Tomas Vondra has posted a patch for a bug fix with pageinspect, so > this would create some conflicts noise for him if 0003 was applied > today, so let's wait a bit: > https://www.postgresql.org/message-id/3385a58f-5484-49d0-b790-9a198a0bf23= 6@v > ondra.me Agreed, let's wait on this one. I did not include it in the series.=20 >=20 > 0001 and 0002 are much larger than the 4 others, and I'm lacking the > > steam to check them in more details today. Thanks ! =2D- Ronan Dunklau --nextPart4935095.GXAFRqVoOG Content-Disposition: attachment; filename="v4-0001-Add-tests-for-xpath_nodeset-and-xpath_list-functi.patch" Content-Transfer-Encoding: 7Bit Content-Type: text/x-patch; charset="UTF-8"; name="v4-0001-Add-tests-for-xpath_nodeset-and-xpath_list-functi.patch"