]> granicus.if.org Git - postgresql/commit
Create an SP-GiST opclass for inet/cidr.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 23 Aug 2016 19:16:21 +0000 (15:16 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 23 Aug 2016 19:16:30 +0000 (15:16 -0400)
commit77e2906821e2aec3c0807866a84c2934feeac8be
treeacf0ecb7a26ad879b2001db3621e05c77dea94d1
parent0fda682e542c9acd368588e50a1993fecd3b73e2
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>
13 files changed:
doc/src/sgml/spgist.sgml
src/backend/utils/adt/Makefile
src/backend/utils/adt/network_spgist.c [new file with mode: 0644]
src/include/catalog/catversion.h
src/include/catalog/pg_amop.h
src/include/catalog/pg_amproc.h
src/include/catalog/pg_opclass.h
src/include/catalog/pg_opfamily.h
src/include/catalog/pg_proc.h
src/include/utils/inet.h
src/test/regress/expected/inet.out
src/test/regress/expected/opr_sanity.out
src/test/regress/sql/inet.sql