From: Tom Lane <tgl@sss.pgh.pa.us>
To: josh@agliodbs.com
Cc: Larry Rosenman <ler@lerctr.org>
Cc: pgsql-sql@postgresql.org
Subject: Re: Ok, how do I debug THIS?
Date: Tue, 13 May 2003 19:22:20 -0400
Message-ID: <19270.1052868140@sss.pgh.pa.us> (raw)
In-Reply-To: <200305131245.26203.josh@agliodbs.com>
References: <246160000.1052853868@lerlaptop.iadfw.net>
<200305131231.34175.josh@agliodbs.com>
<256400000.1052854454@lerlaptop.iadfw.net>
<200305131245.26203.josh@agliodbs.com>
Josh Berkus <josh@agliodbs.com> writes:
>> I just did a head. Note the line count above. It's only 147
>> lines, but the error refers to line 206.
> Obviously postgres is counting lines differently from you.
Just FYI, I noticed the other day while testing some plpgsql changes
that the 7.3 plpgsql seems to double-count newlines appearing inside
quoted literals --- that is, if you have a syntax error appearing after
a multiline literal, the reported line number will be too large. This
seems to explain Larry's bizarre message, since most of the function
was being taken as a multiline literal.
The reason I noticed this was that the updated version counts correctly,
and thus gave different answers. I don't know exactly where the bug
really was --- the changes involved ripping out the use of yylineno
entirely, so I did not look to see just where the double counting had
been happening.
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, josh@agliodbs.com, ler@lerctr.org
Subject: Re: Ok, how do I debug THIS?
In-Reply-To: <19270.1052868140@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