Re: pl/pgsql: END verbosity [patch]

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Neil Conway <neilc(at)samurai(dot)com>
Cc: Pavel Stehule <stehule(at)kix(dot)fsv(dot)cvut(dot)cz>, pgsql-patches(at)postgresql(dot)org, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: pl/pgsql: END verbosity [patch]
Date: 2005-07-01 14:03:57
Message-ID: 28606.1120226637@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Neil Conway <neilc(at)samurai(dot)com> writes:
> BTW, I notice that some but not all the call sites of ereport(ERROR) in
> PL/PgSQL's gram.y set plpgsql_error_lineno. Is there a reason for this?

Without looking at the code, I think it may be that you only need to set
the variable if you want the error to point someplace different than the
last "lno" nonterminal.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message K.G.Sivaraman 2005-07-01 14:18:48 BUG #1744: Directory Missing
Previous Message Tom Lane 2005-07-01 13:53:36 Re: [PATCHES] Users/Groups -> Roles

Browse pgsql-patches by date

  From Date Subject
Next Message Andreas Pflug 2005-07-01 14:22:10 Re: enable/disable trigger (Re: Fwd: [HACKERS] Open items)
Previous Message Tom Lane 2005-07-01 13:53:36 Re: [PATCHES] Users/Groups -> Roles