Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UU6R7-0007Oj-HC for pgsql-docs@arkaria.postgresql.org; Mon, 22 Apr 2013 02:24:57 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UU6R6-0001yU-Hg for pgsql-docs@arkaria.postgresql.org; Mon, 22 Apr 2013 02:24:56 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UU6R5-0001yO-PZ for pgsql-docs@postgresql.org; Mon, 22 Apr 2013 02:24:55 +0000 Received: from mout.gmx.net ([212.227.17.22]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UU6R0-0007Pu-D8 for pgsql-docs@postgresql.org; Mon, 22 Apr 2013 02:24:55 +0000 Received: from mailout-de.gmx.net ([10.1.76.16]) by mrigmx.server.lan (mrigmx002) with ESMTP (Nemesis) id 0MQsi0-1U5RTK47d0-00UMrz for ; Mon, 22 Apr 2013 04:24:49 +0200 Received: (qmail invoked by alias); 22 Apr 2013 02:24:48 -0000 Received: from pool-108-52-108-60.phlapa.fios.verizon.net (EHLO [192.168.1.5]) [108.52.108.60] by mail.gmx.net (mp016) with SMTP; 22 Apr 2013 04:24:48 +0200 X-Authenticated: #495269 X-Provags-ID: V01U2FsdGVkX18/6cV9DyI/vdZxG6ywTGdZY4sE74sYOa4fKg/Eec 5QTNII60XZadJK Message-ID: <1366597484.10808.2.camel@vanquo.pezone.net> Subject: Re: Code examples for 39.6.1. Returning From a Function From: Peter Eisentraut To: Erwin Brandstetter Cc: pgsql-docs@postgresql.org Date: Sun, 21 Apr 2013 22:24:44 -0400 In-Reply-To: <5161EE50.6090004@falter.at> References: <5161EE50.6090004@falter.at> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.4.4-3 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-docs Precedence: bulk Sender: pgsql-docs-owner@postgresql.org On Mon, 2013-04-08 at 00:08 +0200, Erwin Brandstetter wrote: > Aloha! > > Repost, since the first attempt on 03.04.2013 14:31 was before I > subsrcibed to pgsql-docs and doesn't seem to have arrived. > > As advised by Pavel here: > http://stackoverflow.com/questions/15731247/postgresql-function-syntax-error/15731425#15731425 > I am sending this as possible code example for: > http://www.postgresql.org/docs/current/interactive/plpgsql-control-structures.html#PLPGSQL-STATEMENTS-RETURNING > > |CREATE FUNCTION check_available_flightid(date) > RETURNS SETOF integerAS Could you send a patch for that? I'm not exactly sure where it should go. > While being at it, the example at > http://www.postgresql.org/docs/current/interactive/plpgsql-control-structures.html#AEN56293 > could be improved. Fixed. -- Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-docs