Re: [PG19] Bogus errors for polymorphic plpython functions

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: shihao zhong <zhong950419(at)gmail(dot)com>
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: [PG19] Bogus errors for polymorphic plpython functions
Date: 2026-11-01 16:27:41
Message-ID: 366953.1793550461@sss.pgh.pa.us
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

shihao zhong <zhong950419(at)gmail(dot)com> 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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2026-11-01 17:09:37 Re: Internal error codes triggered by regression tests and user queries, take 2
Previous Message Andres Freund 2026-11-01 16:14:28 Re: Internal error codes triggered by regression tests and user queries, take 2