Re: Anonymous code blocks

From: Merlin Moncure <mmoncure(at)gmail(dot)com>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: Dimitri Fontaine <dfontaine(at)hi-media(dot)com>, Petr Jelinek <pjmodos(at)pjmodos(dot)net>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Alvaro Herrera <alvherre(at)commandprompt(dot)com>
Subject: Re: Anonymous code blocks
Date: 2009-09-22 17:44:04
Message-ID: b42b73150909221044r7f0d81e1me15b81621d6c915c@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sat, Sep 19, 2009 at 8:23 PM, Andrew Dunstan <andrew(at)dunslane(dot)net> wrote:
> Dimitri Fontaine wrote:
>>
>> So here are the major points about this patch:
>>
>>  - it's missing the returns declaration syntax (default value could be
>>   returns void?)
>>
>>  - it would be much more friendly to users if it had a default output
>>   for queries, the returned object seems a good fit
>>
>
> Really? That wasn't my expectation at all. I expected that the code would in
> effect be always returning void. I think you're moving the goalposts a bit
> here. I don't think we need a RETURNS clause on it for it to be useful.

A note about void returning functions....there are no send/recv
functions for the void type which will cause problems for users of
this feature over the binary protocol. You can work around this with
normal functions by forcing them to return a value but not with ACB.
Is there any reason why void doens't have send/recv?

merlin

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2009-09-22 17:50:45 Re: Anonymous code blocks vs CREATE LANGUAGE
Previous Message Jaime Casanova 2009-09-22 17:29:21 Re: [PATCH] Largeobject access controls