Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id D80FC633750 for ; Fri, 19 Feb 2010 10:29:12 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 29153-10 for ; Fri, 19 Feb 2010 14:28:55 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 183976334AE for ; Fri, 19 Feb 2010 10:29:01 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id o1JESunA002374; Fri, 19 Feb 2010 09:28:56 -0500 (EST) To: Richard Huxton cc: iuri de araujo sampaio , pgsql-sql@postgresql.org Subject: Re: sintax error In-reply-to: <4B7E6E47.5020503@archonet.com> References: <4B7E4331.1050308@gmail.com> <4B7E6E47.5020503@archonet.com> Comments: In-reply-to Richard Huxton message dated "Fri, 19 Feb 2010 10:56:07 +0000" Date: Fri, 19 Feb 2010 09:28:55 -0500 Message-ID: <2373.1266589735@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.464 tagged_above=-10 required=5 tests=AWL=0.135, BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 201002/82 X-Sequence-Number: 33681 Richard Huxton writes: > I thought it was the PERFORM statements, but it's not. The line number > seems right, although the error message is misleading. FWIW, things are better in HEAD: regression=# create function foo() returns int as $$ regression$# begin regression$# return; regression$# end$$ language plpgsql; ERROR: missing expression at or near ";" LINE 3: return; ^ regression=# regards, tom lane