From: Bruce Momjian <bruce@momjian.us>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: PostgreSQL-development <pgsql-hackers@postgreSQL.org>
Subject: Re: [COMMITTERS] pgsql: btree_gin: properly call DirectFunctionCall1()
Date: Wed, 25 Mar 2015 20:51:23 -0400
Message-ID: <20150326005123.GB31152@momjian.us> (raw)
In-Reply-To: <20150325023510.GI19256@momjian.us>
References: <E1YaZZf-000168-RO@gemulon.postgresql.org>
<15502.1427248923@sss.pgh.pa.us>
<20150325023510.GI19256@momjian.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
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 <bruce@momjian.us> 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 <bruce@momjian.us> http://momjian.us
EnterpriseDB http://enterprisedb.com
+ Everyone has their own god. +
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackersAttachments:btree_gin.diff (text/x-diff, 721B) downloaddiff --git a/contrib/btree_gin/btree_gin.c b/contrib/btree_gin/btree_gin.cnew file mode 100644index 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)
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-committers@postgresql.org
Cc: bruce@momjian.us, tgl@sss.pgh.pa.us, pgsql-hackers@postgreSQL.org
Subject: Re: [COMMITTERS] pgsql: btree_gin: properly call DirectFunctionCall1()
In-Reply-To: <20150326005123.GB31152@momjian.us>
References: <E1YaZZf-000168-RO@gemulon.postgresql.org> <15502.1427248923@sss.pgh.pa.us> <20150325023510.GI19256@momjian.us> <20150326005123.GB31152@momjian.us>
* 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