Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Yaw1C-00074e-M8 for pgsql-hackers@arkaria.postgresql.org; Thu, 26 Mar 2015 00:51:30 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Yaw1C-0000IT-3u for pgsql-hackers@arkaria.postgresql.org; Thu, 26 Mar 2015 00:51:30 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Yaw1A-0000IE-MZ for pgsql-hackers@postgreSQL.org; Thu, 26 Mar 2015 00:51:28 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1Yaw17-0003cT-9D for pgsql-hackers@postgreSQL.org; Thu, 26 Mar 2015 00:51:26 +0000 Received: from bruce by momjian.us with local (Exim 4.72) (envelope-from ) id 1Yaw15-0008C0-AF; Wed, 25 Mar 2015 20:51:23 -0400 Date: Wed, 25 Mar 2015 20:51:23 -0400 From: Bruce Momjian To: Tom Lane Cc: PostgreSQL-development Subject: Re: [COMMITTERS] pgsql: btree_gin: properly call DirectFunctionCall1() Message-ID: <20150326005123.GB31152@momjian.us> References: <15502.1427248923@sss.pgh.pa.us> <20150325023510.GI19256@momjian.us> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="x+6KMIRAuhnl3hBn" Content-Disposition: inline In-Reply-To: <20150325023510.GI19256@momjian.us> User-Agent: Mutt/1.5.20 (2009-06-14) X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org --x+6KMIRAuhnl3hBn Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Mar 24, 2015 at 10:35:10PM -0400, Bruce Momjian wrote: > On Tue, Mar 24, 2015 at 10:02:03PM -0400, Tom Lane wrote: > > Bruce Momjian writes: > > > btree_gin: properly call DirectFunctionCall1() > > > Previously we called DirectFunctionCall3() with dummy arguments. > > > > This patch is entirely wrong and has broken the buildfarm. > > Please revert. > > OK, done. OK, I figured out that I was only supposed to change inet_in, not the other calls to DirectFunctionCall3 (varbit_in and bit_in). Patch attached. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + Everyone has their own god. + --x+6KMIRAuhnl3hBn Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="btree_gin.diff" diff --git a/contrib/btree_gin/btree_gin.c b/contrib/btree_gin/btree_gin.c new file mode 100644 index 80521fb..1a5bb3c *** a/contrib/btree_gin/btree_gin.c --- b/contrib/btree_gin/btree_gin.c *************** GIN_SUPPORT(macaddr, false, leftmostvalu *** 318,327 **** static Datum leftmostvalue_inet(void) { ! return DirectFunctionCall3(inet_in, ! CStringGetDatum("0.0.0.0/0"), ! ObjectIdGetDatum(0), ! Int32GetDatum(-1)); } GIN_SUPPORT(inet, true, leftmostvalue_inet, network_cmp) --- 318,324 ---- static Datum leftmostvalue_inet(void) { ! return DirectFunctionCall1(inet_in, CStringGetDatum("0.0.0.0/0")); } GIN_SUPPORT(inet, true, leftmostvalue_inet, network_cmp) --x+6KMIRAuhnl3hBn Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers --x+6KMIRAuhnl3hBn--