Re: plperl and inline functions -- first draft - Mailing list pgsql-hackers

From David E. Wheeler
Subject Re: plperl and inline functions -- first draft
Date
Msg-id 9958FC3F-862E-406C-A8C5-51FFCC154C94@kineticode.com
Whole thread Raw
In response to Re: plperl and inline functions -- first draft  (Tim Bunce <Tim.Bunce@pobox.com>)
List 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

pgsql-hackers by date:

Previous
From: Magnus Hagander
Date:
Subject: Re: [COMMITTERS] pgsql: /home/peter/commit-msg
Next
From: Emmanuel Cecchet
Date:
Subject: Re: Partitioning option for COPY