Re: plperl and inline functions -- first draft
David Wheeler <david@kineticode.com>
From: "David E. Wheeler" <david@kineticode.com>
To: Tim Bunce <Tim.Bunce@pobox.com>
Cc: Joshua Tolley <eggyknap@gmail.com>, Alexey Klyukin <alexk@commandprompt.com>, Andrew Dunstan <andrew@dunslane.net>, pgsql-hackers@postgresql.org
Date: 2009-11-21T02:30:24Z
Lists: pgsql-hackers
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