Re: BUG #14853: Parameter type is required even when the query does not need to know the type

From: Tomas Vondra <tomas(dot)vondra(at)2ndquadrant(dot)com>
To: Eduardo Pérez Ureta <edpeur(at)gmail(dot)com>, "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #14853: Parameter type is required even when the query does not need to know the type
Date: 2017-10-16 18:09:21
Message-ID: 22d2db6e-d458-3893-f8a9-52a0f129fc10@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


On 10/16/2017 07:39 PM, Eduardo Pérez Ureta wrote:
> I ran the PostgreSQL test suite (make check) and all the tests passed,
> so, my change should not break anything.
> Maybe PostgreSQL should be changed to not require a type in this case.
>

Absence of evidence is not evidence of absence, unfortunately.

In other words, the fact that "make check" passes may easily be just due
to an omission in the regression tests. Apparently there's no test that
we actually produce the error when the type can't be inferred.

That being said, I don't know if this is a correct change or not.
Perhaps it is, perhaps it isn't - not sure. Consider adding it to the
next commitfest [https://commitfest.postgresql.org/15/] where you'll get
more feedback. You'll need to submit it to pgsql-hackers though.

regards

--
Tomas Vondra http://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message David G. Johnston 2017-10-16 18:25:56 Re: BUG #14853: Parameter type is required even when the query does not need to know the type
Previous Message Eduardo Pérez Ureta 2017-10-16 17:43:03 Re: BUG #14853: Parameter type is required even when the query does not need to know the type