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.98.2) (envelope-from ) id 1xMzyO-00000002JM9-3ePu for pgsql-hackers@arkaria.postgresql.org; Sat, 31 Oct 2026 03:41:41 +0000 Received: from localhost ([127.0.0.1]:57508 helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.98.2) (envelope-from ) id 1xMzyO-0000000DMKC-1Pqq for pgsql-hackers@arkaria.postgresql.org; Sat, 31 Oct 2026 03:41:40 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]:47752) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1xMzyN-0000000DMK4-38r2 for pgsql-hackers@lists.postgresql.org; Sat, 31 Oct 2026 03:41:40 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1xMzyL-00000001rM1-1JD4 for pgsql-hackers@lists.postgresql.org; Sat, 31 Oct 2026 03:41:39 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.18.1/8.18.1) with ESMTP id 69V3fWMM2928362; Fri, 30 Oct 2026 23:41:32 -0400 DKIM-Filter: OpenDKIM Filter v2.11.0 sss.pgh.pa.us 69V3fWMM2928362 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sss.pgh.pa.us; s=default; t=1793418092; bh=9dVlCu1aCV6HqjOu1I7X4cgfX7293l7Y6pLA8drwLoI=; h=From:To:cc:Subject:In-reply-to:References:Date:From; b=CF+uM2OsYIHHvqPiC5r3buXpTEc5NJu5Yew9Nw79086UYcYw/LXGhPZv4++1QvL0K VkDA/5HGbWgBE23QgmXzdT4kxHCUm51VEXb+6UNkiK4CLhb+cHlbD5kI0lDHEagHTh DvmiLC+LQIZk+HKzDfEulqXnNSh4zajiKwkuKPFU= From: Tom Lane To: shihao zhong cc: pgsql-hackers@lists.postgresql.org Subject: Re: [PG19] Bogus errors for polymorphic plpython functions In-reply-to: References: <2865288.1793403201@sss.pgh.pa.us> Comments: In-reply-to shihao zhong message dated "Fri, 30 Oct 2026 23:37:25 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2928360.1793418092.1@sss.pgh.pa.us> Date: Fri, 30 Oct 2026 23:41:32 -0400 Message-ID: <2928361.1793418092@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk shihao zhong writes: > One thing. The patch rejects every pseudotype for OUT and TABLE > arguments, including record. The old code skipped OUT arguments, and > plpgsql does allow record there. Is that intended? It is tighter than before. At least for polymorphic types, I don't think the difference matters, because the core code will enforce that you can't have a polymorphic output without a polymorphic input, so we'd reject the function anyway. But maybe we should allow a RECORD output; did that work before? (I'd bet not, but haven't tested) regards, tom lane