Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XpL9i-0002nx-Mw for pgsql-bugs@arkaria.postgresql.org; Fri, 14 Nov 2014 17:59:34 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XpL9i-00044t-7E for pgsql-bugs@arkaria.postgresql.org; Fri, 14 Nov 2014 17:59:34 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XpL9g-00044k-9g for pgsql-bugs@postgresql.org; Fri, 14 Nov 2014 17:59:32 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XpL9Y-0007MD-KI for pgsql-bugs@postgresql.org; Fri, 14 Nov 2014 17:59:31 +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 sAEHxIPr031009; Fri, 14 Nov 2014 12:59:18 -0500 From: Tom Lane To: Jon Nelson cc: pgsql-bugs@postgresql.org Subject: Re: minor: contrib/btree_gin/btree_gin.c uses DirectFunctionCall3(inet_in, ..) In-reply-to: References: Comments: In-reply-to Jon Nelson message dated "Fri, 14 Nov 2014 10:40:36 -0600" Date: Fri, 14 Nov 2014 12:59:18 -0500 Message-ID: <31008.1415987958@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) 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 Jon Nelson writes: > contrib/btree_gin/btree_gin.c uses DirectFunctionCall3(inet_in,..) > instead of DirectFunctionCall1(inet_in, one_argument). > That doesn't seem right. Does such a thing matter? It's not really incorrect: in a call going through InputFunctionCall(), which is the normal path, the two extra arguments would be provided whether the specific datatype input function needed them or not. However, I think the usual convention for DirectFunctionCall() usage is to pass exactly what the target function uses, since you know exactly what you're calling. Certainly that's what happens in the two direct calls to inet_in in the core code. So I tend to agree that we should change this call to match the others, but it's purely cosmetic. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs