From 0cf16b44cb749cac2ff9dcbbe92bfb94f72bb0d0 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Tue, 31 Mar 2015 10:26:45 -0400 Subject: [PATCH] btree_gin: properly call DirectFunctionCall1() Previously we called DirectFunctionCall3() with dummy arguments. Fixed version of previous patch. Report by Jon Nelson --- contrib/btree_gin/btree_gin.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/contrib/btree_gin/btree_gin.c b/contrib/btree_gin/btree_gin.c index 80521fbb7b..1a5bb3cdc6 100644 --- a/contrib/btree_gin/btree_gin.c +++ b/contrib/btree_gin/btree_gin.c @@ -318,10 +318,7 @@ GIN_SUPPORT(macaddr, false, leftmostvalue_macaddr, macaddr_cmp) static Datum leftmostvalue_inet(void) { - return DirectFunctionCall3(inet_in, - CStringGetDatum("0.0.0.0/0"), - ObjectIdGetDatum(0), - Int32GetDatum(-1)); + return DirectFunctionCall1(inet_in, CStringGetDatum("0.0.0.0/0")); } GIN_SUPPORT(inet, true, leftmostvalue_inet, network_cmp)