From: Tom Lane <tgl@sss.pgh.pa.us>
To: shihao zhong <zhong950419@gmail.com>
Cc: pgsql-hackers@lists.postgresql.org
Subject: Re: [PG19] Bogus errors for polymorphic plpython functions
Date: Fri, 30 Oct 2026 23:41:32 -0400
Message-ID: <2928361.1793418092@sss.pgh.pa.us> (raw)
In-Reply-To: <CAGRkXqTg0rRHqWXHwO4Qk+4sc0k5k-dW7pswN6Cg1EKSjHwiFQ@mail.gmail.com>
References: <2865288.1793403201@sss.pgh.pa.us>
<CAGRkXqTg0rRHqWXHwO4Qk+4sc0k5k-dW7pswN6Cg1EKSjHwiFQ@mail.gmail.com>
shihao zhong <zhong950419@gmail.com> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-hackers@postgresql.org
Cc: tgl@sss.pgh.pa.us, zhong950419@gmail.com
Subject: Re: [PG19] Bogus errors for polymorphic plpython functions
In-Reply-To: <2928361.1793418092@sss.pgh.pa.us>
References: <2865288.1793403201@sss.pgh.pa.us> <CAGRkXqTg0rRHqWXHwO4Qk+4sc0k5k-dW7pswN6Cg1EKSjHwiFQ@mail.gmail.com> <2928361.1793418092@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox