Re: [BUGS] BUG #14463: refcursor cann't used with array or variadic parameter?

Поиск
Список
Период
Сортировка
От Pavel Stehule
Тема Re: [BUGS] BUG #14463: refcursor cann't used with array or variadic parameter?
Дата
Msg-id CAFj8pRDASMcTo9XQ5yrQh2aDjfxUBsWWtW557BPZguSUFR-f=Q@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [BUGS] BUG #14463: refcursor cann't used with array or variadic parameter?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs


2016-12-13 17:45 GMT+01:00 Tom Lane <tgl@sss.pgh.pa.us>:
Pavel Stehule <pavel.stehule@gmail.com> writes:
> It is not a bug - it is feature. PLpgSQL statements doesn't expect a
> expression on some places.

Well, it's not unreasonable to expect that a subscripted datum could
be used.  It looks to me like this is a grammar omission and the
executor code would work fine.

There is only one possible issue - the early type check in compile time will be moved to late check in runtime.

Maybe it was reason why somebody didn't allowed a expr there.

Regards

Pavel
 

                        regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [BUGS] BUG #14463: refcursor cann't used with array or variadic parameter?
Следующее
От: "David G. Johnston"
Дата:
Сообщение: Re: [BUGS] BUG #14464: Problems about FUNCTIONS