Re: plperl and inline functions -- first draft

From: "David E(dot) Wheeler" <david(at)kineticode(dot)com>
To: Tim Bunce <Tim(dot)Bunce(at)pobox(dot)com>
Cc: Joshua Tolley <eggyknap(at)gmail(dot)com>, Alexey Klyukin <alexk(at)commandprompt(dot)com>, Andrew Dunstan <andrew(at)dunslane(dot)net>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: plperl and inline functions -- first draft
Date: 2009-11-21 02:30:24
Message-ID: 9958FC3F-862E-406C-A8C5-51FFCC154C94@kineticode.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Emmanuel Cecchet 2009-11-21 03:59:46 Re: Partitioning option for COPY
Previous Message Magnus Hagander 2009-11-21 02:25:42 Re: [HACKERS] pgsql: /home/peter/commit-msg