Re: [HACKERS] SQL procedures

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [HACKERS] SQL procedures
Дата
Msg-id 11024.1514911665@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [HACKERS] SQL procedures  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: [HACKERS] SQL procedures
Re: [HACKERS] SQL procedures
Re: [HACKERS] SQL procedures
Список pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes:
> I agree that we need this, but using prorettype = InvalidOid to do it
> might not be the best way, because it only works for procedures that
> don't return anything.  If a procedure could return, say, an integer,

Good point, because that is possible in some other systems, and so
somebody is going to ask for it at some point.

> Anyway, I think it would be better to invent an explicit way to
> represent whether something is a procedure rather than relying on
> overloading prorettype to tell us.

+1 --- seems like a new bool column is the thing.  Or may we should merge
"proisprocedure" with proisagg and proiswindow into an enum prokind?
Although that would break some existing client-side code.

PS: I still strongly disagree with allowing prorettype to be zero.

            regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: David Steele
Дата:
Сообщение: Re: PATCH: Configurable file mode mask
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: Package version in PG_VERSION and version()