From: Tom Lane <tgl@sss.pgh.pa.us>
To: Abel Abraham Camarillo Ojeda <acamari@verlet.org>
Cc: pgsql-hackers@postgresql.org
Subject: Re: Difference in postgres9.0.4 and postgres9.1beta1 when displaying error lines in functions with comments
Date: Thu, 09 Jun 2011 22:22:13 -0400
Message-ID: <6584.1307672533@sss.pgh.pa.us> (raw)
In-Reply-To: <BANLkTinsH_+nuy9kbfca5u1-2XTWpbE_zw@mail.gmail.com>
References: <BANLkTinsH_+nuy9kbfca5u1-2XTWpbE_zw@mail.gmail.com>
Abel Abraham Camarillo Ojeda <acamari@verlet.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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, acamari@verlet.org, 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: <6584.1307672533@sss.pgh.pa.us>
References: <BANLkTinsH_+nuy9kbfca5u1-2XTWpbE_zw@mail.gmail.com> <6584.1307672533@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox