Re: PL/PgSQL buglet / doc error

From: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
To: Neil Conway <neilc(at)samurai(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: PL/PgSQL buglet / doc error
Date: 2002-11-08 00:03:01
Message-ID: 20021107155609.U3283-100000@megazone23.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


On 7 Nov 2002, Neil Conway wrote:

> The 7.3 docs for the PL/PgSQL return statement say:
>
> RETURN with an expression is used to return from a PL/pgSQL function
> that does not return a set.
>
> [...]
>
> If you have declared the function to return void, then the expression
> can be omitted, and will be ignored in any case.
...
> Should this be implemented, or should the assertion that 'RETURN is
> optional' be removed from the docs?

I'm not sure how you translated the above to return is optional. I'd
read it as the expression portion of the return statement is optional if
the function returns void. Thus you can say return; for the return
because the expression is optional.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Neil Conway 2002-11-08 00:10:41 Re: PL/PgSQL buglet / doc error
Previous Message Neil Conway 2002-11-07 23:44:06 PL/PgSQL buglet / doc error