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 1xNYPb-00000002cUY-0pi8 for pgsql-hackers@arkaria.postgresql.org; Sun, 01 Nov 2026 16:28:03 +0000 Received: from localhost ([127.0.0.1]:47970 helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.98.2) (envelope-from ) id 1xNYPX-0000000HE0L-496R for pgsql-hackers@arkaria.postgresql.org; Sun, 01 Nov 2026 16:27:59 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]:49052) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1xNYPS-0000000HE09-2u04 for pgsql-hackers@lists.postgresql.org; Sun, 01 Nov 2026 16:27:59 +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 1xNYPN-000000025p8-2OKp for pgsql-hackers@lists.postgresql.org; Sun, 01 Nov 2026 16:27:54 +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 6A1GRfMx366954; Sun, 1 Nov 2026 11:27:41 -0500 DKIM-Filter: OpenDKIM Filter v2.11.0 sss.pgh.pa.us 6A1GRfMx366954 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sss.pgh.pa.us; s=default; t=1793550461; bh=YmVTO7cw4WcWkool/6+KFUjb1lIC7DifXX4MM+ut5n8=; h=From:To:cc:Subject:In-reply-to:References:Date:From; b=ibScZVuxKWwQzG7RjDSHREdJaZSugeavpS1HcNC0StxNHF3RrQpkTorYBoxgByTkL TzdkXcIcUFNQSHky1u0TQoxBn76jnz13hUPp2EVI4bGmDUFyQT38E6M1xMvg0ezle4 0t5mQso+hIwt18K0gqAbuiFsKLhoK8/Jz8DNBdXk= 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> <2928361.1793418092@sss.pgh.pa.us> <233394.1793464193@sss.pgh.pa.us> Comments: In-reply-to shihao zhong message dated "Sat, 31 Oct 2026 20:45:20 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <366952.1793550461.1@sss.pgh.pa.us> Date: Sun, 01 Nov 2026 11:27:41 -0500 Message-ID: <366953.1793550461@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk shihao zhong writes: > One small thing in 0002. A single OUT void parameter worked before > and is now rejected. RETURNS TABLE(v void) is the same. I'm pretty skeptical that anyone ever wrote this, or that we should consider it a supported thing to do, so I'm inclined to leave the patch as-is. RETURNS VOID is supposed to mean "no interesting return value", but the two syntaxes you sketch treat it as a regular data type, which is not a thing we should encourage. regards, tom lane