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-31T15:05:41Z
Lists: pgsql-hackers
jian he <jian.universality@gmail.com> writes:
> now changed to
> static PartitionStrategy parsePartitionStrategy(char *strategy, int location,
> core_yyscan_t yyscanner);

I can take a look at this, since it's basically a followup
to 774171c4f.

			regards, tom lane



Commits

  1. Add a parse location field to struct FunctionParameter.

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