Re: make all ereport in gram.y print out relative location

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: jian he <jian.universality@gmail.com>
Cc: Alvaro Herrera <alvherre@alvh.no-ip.org>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2024-10-31T20:11:30Z
Lists: pgsql-hackers
I wrote:
> I can take a look at this, since it's basically a followup
> to 774171c4f.

Pushed with some cleanup and further hacking.

			regards, tom lane



Commits

  1. Add a parse location field to struct FunctionParameter.

  2. Make all ereport() calls within gram.y provide error locations.