From: | Andy Fan <zhihuifan1213(at)163(dot)com> |
---|---|
To: | "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers(at)lists(dot)postgresql(dot)org |
Subject: | Re: Better error messages for %TYPE and %ROWTYPE in plpgsql |
Date: | 2024-02-27 01:49:00 |
Message-ID: | 87plwizn76.fsf@163.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
"David G. Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com> writes:
> On Mon, Feb 26, 2024 at 5:46 PM Andy Fan <zhihuifan1213(at)163(dot)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.
Acutally I didn't asked about back-patch. I meant error message is an
part of user interface, if we change a error message, the end
user may be impacted, at least in theory. for example, end-user has some
code like this:
String errMsg = ex.getErrorMsg();
if (errMsg.includes("a-target-string"))
{
// do sth.
}
So if the error message is changed, the above code may be broken.
I have little experience on this, so I want to know the policy we are
using, for the background which I said in previous reply.
--
Best Regards
Andy Fan
From | Date | Subject | |
---|---|---|---|
Next Message | Melanie Plageman | 2024-02-27 01:50:28 | Re: BitmapHeapScan streaming read user and prelim refactoring |
Previous Message | Zhijie Hou (Fujitsu) | 2024-02-27 01:42:59 | RE: Synchronizing slots from primary to standby |