Skip to content

Commit 77e2906

Browse files
committed
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>
1 parent 0fda682 commit 77e2906

File tree

13 files changed

+951
-3
lines changed

13 files changed

+951
-3
lines changed

doc/src/sgml/spgist.sgml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,23 @@
145145
<literal>~&gt;~</>
146146
</entry>
147147
</row>
148+
<row>
149+
<entry><literal>inet_ops</></entry>
150+
<entry><type>inet</>, <type>cidr</></entry>
151+
<entry>
152+
<literal>&amp;&amp;</>
153+
<literal>&gt;&gt;</>
154+
<literal>&gt;&gt;=</>
155+
<literal>&gt;</>
156+
<literal>&gt;=</>
157+
<literal>&lt;&gt;</>
158+
<literal>&lt;&lt;</>
159+
<literal>&lt;&lt;=</>
160+
<literal>&lt;</>
161+
<literal>&lt;=</>
162+
<literal>=</>
163+
</entry>
164+
</row>
148165
</tbody>
149166
</tgroup>
150167
</table>

src/backend/utils/adt/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ OBJS = acl.o amutils.o arrayfuncs.o array_expanded.o array_selfuncs.o \
1717
geo_ops.o geo_selfuncs.o geo_spgist.o inet_cidr_ntop.o inet_net_pton.o \
1818
int.o int8.o json.o jsonb.o jsonb_gin.o jsonb_op.o jsonb_util.o \
1919
jsonfuncs.o like.o lockfuncs.o mac.o misc.o nabstime.o name.o \
20-
network.o network_gist.o network_selfuncs.o \
20+
network.o network_gist.o network_selfuncs.o network_spgist.o \
2121
numeric.o numutils.o oid.o oracle_compat.o \
2222
orderedsetaggs.o pg_locale.o pg_lsn.o pg_upgrade_support.o \
2323
pgstatfuncs.o \

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy