Re: PL/pgSQL question

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Ycrux <ycrux(at)club-internet(dot)fr>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: PL/pgSQL question
Date: 2006-03-10 00:25:52
Message-ID: 28877.1141950352@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Ycrux <ycrux(at)club-internet(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Greg Sabino Mullane 2006-03-10 00:32:05 Re: majordomo unmaintained, postmaster emails ignored?
Previous Message Noel Faux 2006-03-09 23:36:14 Re: Data corruption zero a file - help!!