Re: Difference in postgres9.0.4 and postgres9.1beta1 when displaying error lines in functions with comments

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Abel Abraham Camarillo Ojeda <acamari(at)verlet(dot)org>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Difference in postgres9.0.4 and postgres9.1beta1 when displaying error lines in functions with comments
Date: 2011-06-10 02:22:13
Message-ID: 6584.1307672533@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-hackers

Abel Abraham Camarillo Ojeda <acamari(at)verlet(dot)org> 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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Abel Abraham Camarillo Ojeda 2011-06-10 02:23:38 Re: Difference in postgres9.0.4 and postgres9.1beta1 when displaying error lines in functions with comments
Previous Message Abel Abraham Camarillo Ojeda 2011-06-10 02:17:16 Fwd: Difference in postgres9.0.4 and postgres9.1beta1 when displaying error lines in functions with comments

Browse pgsql-hackers by date

  From Date Subject
Next Message Abel Abraham Camarillo Ojeda 2011-06-10 02:23:38 Re: Difference in postgres9.0.4 and postgres9.1beta1 when displaying error lines in functions with comments
Previous Message Abel Abraham Camarillo Ojeda 2011-06-10 02:17:16 Fwd: Difference in postgres9.0.4 and postgres9.1beta1 when displaying error lines in functions with comments