On Nov 20, 2009, at 10:50 PM, Tim Bunce wrote:

> I'd suggest:
> 
>    ...; PL/Perl functions created with CREATE FUNCTION are called in a
>    scalar context, so can't return a list.  You can return more complex
>    structures (arrays, records, and sets) by returning a reference, as
>    discussed below.
> 
> That only mentions "functions created with CREATE FUNCTION" though.
> Perhaps it needs to be generalized to cover DO as well.

FWIW, DO is run in a VOID context. Return values are ignored (or perhaps 
trigger an exception?).

Best,

David
-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Reply via email to