Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e49pS-0008H5-Me for pgsql-bugs@arkaria.postgresql.org; Mon, 16 Oct 2017 18:09:30 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1e49pS-0004QX-86 for pgsql-bugs@arkaria.postgresql.org; Mon, 16 Oct 2017 18:09:30 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1e49pR-0004QN-Nx for pgsql-bugs@postgresql.org; Mon, 16 Oct 2017 18:09:29 +0000 Received: from mail-wr0-x230.google.com ([2a00:1450:400c:c0c::230]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1e49pO-0005TM-B5 for pgsql-bugs@postgresql.org; Mon, 16 Oct 2017 18:09:29 +0000 Received: by mail-wr0-x230.google.com with SMTP id r79so3814756wrb.13 for ; Mon, 16 Oct 2017 11:09:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=nG50YjiVaBeF9NeQeGOfaR5OPT0l3fzmdAHBqWi7zYs=; b=zYIff0Q5lMa8c3TLWPA9ymf3HIBHd0e4L3YxM0o4SY/84nXr7Pd3VJOHqClXnKNSby 7yaTCPXXv+cbrZ3bPw6avhOljXp7lcljO6V+6+WmYYgCleN9VOpNKZ6e23lTe6/6qdF5 yZFx2r/rnvr6Oi4Z4EQfS4F8BP/LeIrSa7e7novTT5nAKBsd71m7OrltbG3tzOdRuuk6 XOAX8xb45kPpSTUc39F5f85yAs0vr+oH+WUqVA4bD8tR2wxB4T8XWL+2eLFW3wLnLzdo fAUO0pDJO1a0xel2THrntBgqxRRdSYF6hiNNhvF1WodsLggzw5MkeumVFDOSl/OnByP7 5o7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=nG50YjiVaBeF9NeQeGOfaR5OPT0l3fzmdAHBqWi7zYs=; b=T4qaN57IAyGllDfoiG+gy9QSL7AczxeVuWlyQ8sXSzBC+NJja19iNzoUHcOZ/pSBfO /E6m0yXVE4rtOql5RFhB+yjl4D1//+fWMQ3FwEnkJSeRnND4+K/fy4jYUQBmoSyXFztC rdBAY+/HuqIkolpSBWhU271dsmVcf+fefALv0V8Zt/EyL84EmOaj/lGYnq/gtrs5Wuj3 myBm/tL95vYPsD0EdVK3vRob1/tNdxkK4SglFrG46+E6ZEaDqKN2QZwCj+01iY/VxSfR gPqMUrKvBJy4t6iV12kcJXIvc8hrfRHQ+1qT7wuI7jD/1M+bej1HGb+/upwIFHg8mYMC fGWQ== X-Gm-Message-State: AMCzsaUKUtj8Vxxd+2/e9GbsrUZABmAc7fPUgBRBuZsdj+9w38pUsp42 DERAUqMnr+gRpMYOogGaEofPDP6awoG4lAf4PhBXg6Ih4R7vmgdmGwWu20uis9rQ6Ou5gtTXLLO M+5mMczNwb5lYbZlfJ29MkedEqw9BBbmhBY7BlKC3QbYiFCmc8Acde4Ugjn58WM/mzee+iL66M5 XXVNZV X-Google-Smtp-Source: ABhQp+STPuOgZT7uGW31+lP4GDGhDHkTR35J+a4GGcV1ykvgYmzWCqVrMXYHac3YaFPoR7Oigi2D6A== X-Received: by 10.223.169.167 with SMTP id b36mr1477272wrd.61.1508177365152; Mon, 16 Oct 2017 11:09:25 -0700 (PDT) Received: from [10.137.2.19] (ip-78-102-97-226.net.upcbroadband.cz. [78.102.97.226]) by smtp.gmail.com with ESMTPSA id v9sm5283469wre.12.2017.10.16.11.09.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Oct 2017 11:09:23 -0700 (PDT) Subject: Re: BUG #14853: Parameter type is required even when the query does not need to know the type To: =?UTF-8?Q?Eduardo_P=c3=a9rez_Ureta?= , "David G. Johnston" Cc: pgsql-bugs@postgresql.org References: <20171013140350.8210.40918@wrigleys.postgresql.org> From: Tomas Vondra Message-ID: <22d2db6e-d458-3893-f8a9-52a0f129fc10@2ndquadrant.com> Date: Mon, 16 Oct 2017 20:09:21 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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