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 1u1aY8-004mN3-2R for pgsql-hackers@arkaria.postgresql.org; Mon, 07 Apr 2025 00:41:16 +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 1u1aY6-0060Zx-BO for pgsql-hackers@arkaria.postgresql.org; Mon, 07 Apr 2025 00:41:14 +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 1u1aY6-0060Zo-1q for pgsql-hackers@lists.postgresql.org; Mon, 07 Apr 2025 00:41:14 +0000 Received: from 003.mia.mailroute.net ([199.89.3.6]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1u1aY2-003NBG-37 for pgsql-hackers@postgresql.org; Mon, 07 Apr 2025 00:41:13 +0000 Received: from localhost (localhost [127.0.0.1]) by 003.mia.mailroute.net (Postfix) with ESMTP id 4ZW9PK65FRzlgqVd; Mon, 7 Apr 2025 00:41:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=acm.org; h= content-transfer-encoding:content-type:content-type:in-reply-to :mime-version:user-agent:date:date:message-id:from:from :references:subject:subject:received:received; s=mr01; t= 1743986468; x=1746578469; bh=jJegbg+SRYVZDnGffcPoysFlDLeiOlLNduV 3rcIhlq8=; b=CiLa9xzNh7JE8bgXTzSe7Eiwm6MfdeM39V6zERDw4lyjO45P9F9 sw5SOEjw9ktM1r5MDtGoToSMo4O4D4ua9yp3uxLAZV2xDC9s91O0kTvR1oLTUj6i R9iSWZt26+UbJ3rpjmPSTrSKJjgWPArr78W45ZgLWpPIOyWY5lLY2F6LT/VSbuKN +Ir2kzQ0fpm9j4XFHjV0xqxqMkqtJpzojECWR5w6kQ6TNCEeWKECpa0tQ7Qymz0V G/JTcg7X7H30JFn529mW9iphcs5hnMKXuhyP/utjmMrlx55Tub+i/PX8Np2J/E28 WQVUEiMqQ9RF1oUIPpMMYUB+UCNVIEskfFw== X-Virus-Scanned: by MailRoute Received: from 003.mia.mailroute.net ([127.0.0.1]) by localhost (003.mia [127.0.0.1]) (mroute_mailscanner, port 10029) with LMTP id qlIc_CL7Rz7W; Mon, 7 Apr 2025 00:41:08 +0000 (UTC) Received: from [73.103.120.3] (c-73-103-120-3.hsd1.in.comcast.net [73.103.120.3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: jcflack@acm.org) by 003.mia.mailroute.net (Postfix) with ESMTPSA id 4ZW9PG5GJFzlgqVS; Mon, 7 Apr 2025 00:41:05 +0000 (UTC) Subject: Re: FmgrInfo allocation patterns (and PL handling as staged programming) To: Tom Lane References: <67F2B767.9040507@acm.org> <2965818.1743960827@sss.pgh.pa.us> <67F2D87F.1000709@acm.org> <2978258.1743968866@sss.pgh.pa.us> <67F30DDA.4000509@acm.org> <3112950.1743984111@sss.pgh.pa.us> Cc: PostgreSQL Hackers , Peter Eisentraut From: Chapman Flack X-Enigmail-Draft-Status: N1110 Message-ID: <67F31F20.6090706@acm.org> Date: Sun, 6 Apr 2025 20:41:04 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.0 MIME-Version: 1.0 In-Reply-To: <3112950.1743984111@sss.pgh.pa.us> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 04/06/25 20:01, Tom Lane wrote: > Looking more closely at ProcedureCreate(), it makes a dependency > if a transform *exists* for the argument or result type, whether > a TRANSFORM clause is present or not. Surely this is completely > bogus? We should be depending on the OIDs mentioned in protrftypes, I think that's it. I tested by creating a function like create function foo() returns text transform for type circle that is, with the transform type not appearing as an argument or return type. As far as I know, that's still a cromulent usage, as I could be saying I want the function to apply that transform to circles it uses or retrieves in queries it makes. But if the dependency is being created based on argument/return types and not on protrftypes, that will slip right through the cracks. Regards, -Chap