Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1evsYq-0003bG-Pd for pgsql-bugs@arkaria.postgresql.org; Tue, 13 Mar 2018 22:38:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1evsYq-0001vT-15 for pgsql-bugs@arkaria.postgresql.org; Tue, 13 Mar 2018 22:38:24 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1evsXA-0004Q6-MK for pgsql-bugs@lists.postgresql.org; Tue, 13 Mar 2018 22:36:40 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1evsX7-0004iE-HU for pgsql-bugs@lists.postgresql.org; Tue, 13 Mar 2018 22:36:39 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w2DMaa0n007088; Tue, 13 Mar 2018 18:36:36 -0400 From: Tom Lane To: "David G. Johnston" cc: rep.dot.nop@gmail.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15109: Unhelpful error message on type mismatch In-reply-to: References: <152097399497.1223.8046666575875924842@wrigleys.postgresql.org> Comments: In-reply-to "David G. Johnston" message dated "Tue, 13 Mar 2018 14:17:29 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <7086.1520980596.1@sss.pgh.pa.us> Date: Tue, 13 Mar 2018 18:36:36 -0400 Message-ID: <7087.1520980596@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk "David G. Johnston" 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