summaryrefslogtreecommitdiff
path: root/src/include/utils/inet.h
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2016-08-23 15:16:21 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2016-08-23 15:16:30 -0400
commit77e2906821e2aec3c0807866a84c2934feeac8be (patch)
treeacf0ecb7a26ad879b2001db3621e05c77dea94d1 /src/include/utils/inet.h
parent0fda682e542c9acd368588e50a1993fecd3b73e2 (diff)
Create an SP-GiST opclass for inet/cidr.
This seems to offer significantly better search performance than the existing GiST opclass for inet/cidr, at least on data with a wide mix of network mask lengths. (That may suggest that the data splitting heuristics in the GiST opclass could be improved.) Emre Hasegeli, with mostly-cosmetic adjustments by me Discussion: <CAE2gYzxtth9qatW_OAqdOjykS0bxq7AYHLuyAQLPgT7H9ZU0Cw@mail.gmail.com>
Diffstat (limited to 'src/include/utils/inet.h')
-rw-r--r--src/include/utils/inet.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/include/utils/inet.h b/src/include/utils/inet.h
index dfa0b9f7113..9fd954da7d3 100644
--- a/src/include/utils/inet.h
+++ b/src/include/utils/inet.h
@@ -136,6 +136,15 @@ extern Datum inet_gist_picksplit(PG_FUNCTION_ARGS);
extern Datum inet_gist_same(PG_FUNCTION_ARGS);
/*
+ * SP-GiST support functions in network_spgist.c
+ */
+extern Datum inet_spg_config(PG_FUNCTION_ARGS);
+extern Datum inet_spg_choose(PG_FUNCTION_ARGS);
+extern Datum inet_spg_picksplit(PG_FUNCTION_ARGS);
+extern Datum inet_spg_inner_consistent(PG_FUNCTION_ARGS);
+extern Datum inet_spg_leaf_consistent(PG_FUNCTION_ARGS);
+
+/*
* Estimation functions in network_selfuncs.c
*/
extern Datum networksel(PG_FUNCTION_ARGS);