Re: Is a function to a 1-component record type undeclarable? - Mailing list pgsql-hackers

From Chapman Flack
Subject Re: Is a function to a 1-component record type undeclarable?
Date
Msg-id 619BC761.8070207@anastigmatix.net
Whole thread Raw
In response to Re: Is a function to a 1-component record type undeclarable?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On 11/22/21 11:15, Tom Lane wrote:
> Yup, that's intentional, and documented.

I think I found where it's documented; nothing under argmode/column_type
/column_name, but just enough under rettype to entail the current behavior.

> It seems more useful to allow you to declare a scalar-returning function
> in this style, if you wish, than to make it mean a one-component record.

Would that usefulness be diminished any by allowing the currently-rejected
explicit RECORD syntax to be accepted and explicitly mean record?

Regards,
-Chap



pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Isn't it better with "autovacuum worker...." instead of "worker took too long to start; canceled" specific to "auto
Next
From: Alvaro Herrera
Date:
Subject: Re: add missing errdetail for xlogreader allocation failure error