From: Tom Lane <tgl@sss.pgh.pa.us>
To: David G. Johnston <david.g.johnston@gmail.com>
Cc: rep.dot.nop@gmail.com
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15109: Unhelpful error message on type mismatch
Date: Tue, 13 Mar 2018 18:36:36 -0400
Message-ID: <7087.1520980596@sss.pgh.pa.us> (raw)
In-Reply-To: <CAKFQuwbjXfpSdX_JRuCknVW6eLpSwhrjxp00QqORdg_QOoTMtA@mail.gmail.com>
References: <152097399497.1223.8046666575875924842@wrigleys.postgresql.org>
<CAKFQuwbjXfpSdX_JRuCknVW6eLpSwhrjxp00QqORdg_QOoTMtA@mail.gmail.com>
"David G. Johnston" <david.g.johnston@gmail.com> writes:
> On Tue, Mar 13, 2018 at 1:46 PM, PG Bug reporting form <
> noreply@postgresql.org> wrote:
>> psql:xxx.sql:19: ERROR: type of parameter 4 (bigint) does not match that
>> when preparing the plan (text)
>> CONTEXT: PL/pgSQL function xxx(boolean) line 12 at RETURN
> In short - this isn't a bug report so this isn't the right list for the
> discussion (that would be -general), and while the frustration is real the
> proposed alternatives do not seem realistic.
Ideally, of course, we'd like to not see this error at all, at least not
in the context of plpgsql --- it should auto-replan affected statements
when a record column changes type. That's been on the to-do list for a
long time, though, and hasn't gotten done. When it does get done it's
unlikely to be something we'd risk back-patching.
So you could call this a bug if you want, but when it does get fixed
it'll be treated as a new feature instead.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, david.g.johnston@gmail.com, rep.dot.nop@gmail.com
Subject: Re: BUG #15109: Unhelpful error message on type mismatch
In-Reply-To: <7087.1520980596@sss.pgh.pa.us>
References: <152097399497.1223.8046666575875924842@wrigleys.postgresql.org> <CAKFQuwbjXfpSdX_JRuCknVW6eLpSwhrjxp00QqORdg_QOoTMtA@mail.gmail.com> <7087.1520980596@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox