Re: Is a function to a 1-component record type undeclarable?

Поиск
Список
Период
Сортировка
От Chapman Flack
Тема Re: Is a function to a 1-component record type undeclarable?
Дата
Msg-id 619BC761.8070207@anastigmatix.net
обсуждение исходный текст
Ответ на Re: Is a function to a 1-component record type undeclarable?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: Isn't it better with "autovacuum worker...." instead of "worker took too long to start; canceled" specific to "auto
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: add missing errdetail for xlogreader allocation failure error