Re: PL/pgSQL question

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: PL/pgSQL question
Дата
Msg-id 28877.1141950352@sss.pgh.pa.us
обсуждение исходный текст
Ответ на PL/pgSQL question  (Ycrux <ycrux@club-internet.fr>)
Список pgsql-general
Ycrux <ycrux@club-internet.fr> writes:
> # SELECT grantAccess('sara', 'sarapass');
> ERROR:  set-valued function called in context that cannot accept a set

You need to do "SELECT * FROM grantAccess(...)".  This is a plpgsql
implementation restriction that we'll probably try to fix someday,
although there's also a school of thought that says that set-returning
functions in the SELECT targetlist are a bad idea and should be phased
out.

            regards, tom lane

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

Предыдущее
От: "Mongi LASSOUED"
Дата:
Сообщение: posgresql server connection
Следующее
От: "Greg Sabino Mullane"
Дата:
Сообщение: Re: majordomo unmaintained, postmaster emails ignored?