Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit77e2906

Browse files
committed
Create an SP-GiST opclass for inet/cidr.
This seems to offer significantly better search performance than theexisting GiST opclass for inet/cidr, at least on data with a wide mixof network mask lengths. (That may suggest that the data splittingheuristics in the GiST opclass could be improved.)Emre Hasegeli, with mostly-cosmetic adjustments by meDiscussion: <CAE2gYzxtth9qatW_OAqdOjykS0bxq7AYHLuyAQLPgT7H9ZU0Cw@mail.gmail.com>
1 parent0fda682 commit77e2906

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.onetwork_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)

[8]ページ先頭

©2009-2025 Movatter.jp