Search Postgresql Archives

Re: PL/pgSQL question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ycrux <ycrux@xxxxxxxxxxxxxxxx> 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


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux