pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tomas Vondra <tomas.vondra@2ndquadrant.com>
To: Eduardo Pérez Ureta <edpeur@gmail.com>
To: David G. Johnston <david.g.johnston@gmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #14853: Parameter type is required even when the query does not need to know the type
Date: Mon, 16 Oct 2017 20:09:21 +0200
Message-ID: <22d2db6e-d458-3893-f8a9-52a0f129fc10@2ndquadrant.com> (raw)
In-Reply-To: <CAM7oS3FkCsSRM_W4xhuujuV8tv=VLVPCPA3z3UNzV0WY2uaP8g@mail.gmail.com>
References: <20171013140350.8210.40918@wrigleys.postgresql.org>
	<CAKFQuwbnCgcYh46JBXSnLvMk47wsHDdnGybSS59CQ5Wp+HewgQ@mail.gmail.com>
	<CAM7oS3GU2v-oAp-Uws0VNUttdjUrNq01Psqttk8X8=xAro4fKg@mail.gmail.com>
	<CAKFQuwZU0OBrJCVfChuXkShi+L_-9psDDUYGXvrnYbbD-Odxug@mail.gmail.com>
	<CAM7oS3H9gU0Gqvz9B9p6h22i8363z=Pv3bdDj74g7-9wmEw8tQ@mail.gmail.com>
	<CAKFQuwawYCkJ+WH1NoGTnn1OEB-4jLE93ktOpeO94xEHPtJNhw@mail.gmail.com>
	<CAM7oS3HQwJoiT4Yza5kG-zcTU_grPA1RrtniuekvCuUR+C7hpg@mail.gmail.com>
	<CAKFQuwY2ce_MPA1NfURTy_O-XY6whj9eODPu6FA5r_k0q9dSKw@mail.gmail.com>
	<CAM7oS3FkCsSRM_W4xhuujuV8tv=VLVPCPA3z3UNzV0WY2uaP8g@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (17+ messages)  latest in thread

Message-ID: <22d2db6e-d458-3893-f8a9-52a0f129fc10@2ndquadrant.com>
Permalink:  ../22d2db6e-d458-3893-f8a9-52a0f129fc10@2ndquadrant.com/
Also on:    postgresql.org/message-id/22d2db6e-d458-3893-f8a9-52a0f129fc10@2ndquadrant.com

 · 

reply

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: tomas.vondra@2ndquadrant.com, edpeur@gmail.com, david.g.johnston@gmail.com
  Subject: Re: BUG #14853: Parameter type is required even when the query does not need to know the type
  In-Reply-To: <22d2db6e-d458-3893-f8a9-52a0f129fc10@2ndquadrant.com>
  References: <20171013140350.8210.40918@wrigleys.postgresql.org> <CAKFQuwbnCgcYh46JBXSnLvMk47wsHDdnGybSS59CQ5Wp+HewgQ@mail.gmail.com> <CAM7oS3GU2v-oAp-Uws0VNUttdjUrNq01Psqttk8X8=xAro4fKg@mail.gmail.com> <CAKFQuwZU0OBrJCVfChuXkShi+L_-9psDDUYGXvrnYbbD-Odxug@mail.gmail.com> <CAM7oS3H9gU0Gqvz9B9p6h22i8363z=Pv3bdDj74g7-9wmEw8tQ@mail.gmail.com> <CAKFQuwawYCkJ+WH1NoGTnn1OEB-4jLE93ktOpeO94xEHPtJNhw@mail.gmail.com> <CAM7oS3HQwJoiT4Yza5kG-zcTU_grPA1RrtniuekvCuUR+C7hpg@mail.gmail.com> <CAKFQuwY2ce_MPA1NfURTy_O-XY6whj9eODPu6FA5r_k0q9dSKw@mail.gmail.com> <CAM7oS3FkCsSRM_W4xhuujuV8tv=VLVPCPA3z3UNzV0WY2uaP8g@mail.gmail.com> <22d2db6e-d458-3893-f8a9-52a0f129fc10@2ndquadrant.com>

* 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