Re: Better error messages for %TYPE and %ROWTYPE in plpgsql
David G. Johnston <david.g.johnston@gmail.com>
From: "David G. Johnston" <david.g.johnston@gmail.com>
To: Andy Fan <zhihuifan1213@163.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>, pgsql-hackers@lists.postgresql.org
Date: 2024-02-27T00:54:05Z
Lists: pgsql-hackers
On Mon, Feb 26, 2024 at 5:46 PM Andy Fan <zhihuifan1213@163.com> wrote: > > Per recent discussion[1], plpgsql returns fairly unhelpful "syntax > > error" messages when a %TYPE or %ROWTYPE construct references a > > nonexistent object. Here's a quick little finger exercise to try > > to improve that. > > Looks this modify the error message, I want to know how ould we treat > error-message-compatible issue during minor / major upgrade. > There is no bug here so no back-patch; and we are not yet past feature freeze for v17. David J.
Commits
-
Improve plpgsql's error messages for incorrect %TYPE and %ROWTYPE.
- 2a6b47cb50eb 17.0 landed