Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 741A1B5DBCD for ; Thu, 9 Jun 2011 23:22:20 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 38650-08 for ; Fri, 10 Jun 2011 02:22:13 +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 514C9B5DBBE for ; Thu, 9 Jun 2011 23:22:13 -0300 (ADT) 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 p5A2MDsS006585; Thu, 9 Jun 2011 22:22:13 -0400 (EDT) To: Abel Abraham Camarillo Ojeda cc: pgsql-hackers@postgresql.org Subject: Re: Difference in postgres9.0.4 and postgres9.1beta1 when displaying error lines in functions with comments In-reply-to: References: Comments: In-reply-to Abel Abraham Camarillo Ojeda message dated "Thu, 09 Jun 2011 20:58:48 -0500" Date: Thu, 09 Jun 2011 22:22:13 -0400 Message-ID: <6584.1307672533@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201106/856 X-Sequence-Number: 189569 Abel Abraham Camarillo Ojeda writes: > Postgres 9.0.4 and postgres9.1beta1 give different line of error numbers on > functions that raise runtime errors (it seems). This is not a bug. See the release notes: Adjust PL/pgSQL's error line numbering code to be consistent with other PLs (Pavel Stehule) Previously, PL/pgSQL would ignore (not count) an empty line at the start of the function body. Since this was inconsistent with all other languages, the special case was removed. regards, tom lane