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

Commit317dd55

Browse files
committed
Add SP-GiST support for range types.
The implementation is a quad-tree, largely copied from the quad-treeimplementation for points. The lower and upper bound of ranges are the 2dcoordinates, with some extra code to handle empty ranges.I left out the support for adjacent operator, -|-, from the original patch.Not because there was necessarily anything wrong with it, but it was morecomplicated than the other operators, and I only have limited time forreviewing. That will follow as a separate patch.Alexander Korotkov, reviewed by Jeff Davis and me.
1 parent89911b3 commit317dd55

File tree

15 files changed

+1086
-18
lines changed

15 files changed

+1086
-18
lines changed

‎src/backend/utils/adt/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ OBJS = acl.o arrayfuncs.o array_selfuncs.o array_typanalyze.o \
3030
tsginidx.o tsgistidx.o tsquery.o tsquery_cleanup.o tsquery_gist.o\
3131
tsquery_op.o tsquery_rewrite.o tsquery_util.o tsrank.o\
3232
tsvector.o tsvector_op.o tsvector_parser.o\
33-
txid.o uuid.o windowfuncs.o xml.o
33+
txid.o uuid.o windowfuncs.o xml.o rangetypes_spgist.o
3434

3535
like.o: like.c like_match.c
3636

‎src/backend/utils/adt/rangetypes_gist.c

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,6 @@
2121
#include"utils/rangetypes.h"
2222

2323

24-
/* Operator strategy numbers used in the GiST range opclass */
25-
/* Numbers are chosen to match up operator names with existing usages */
26-
#defineRANGESTRAT_BEFORE1
27-
#defineRANGESTRAT_OVERLEFT2
28-
#defineRANGESTRAT_OVERLAPS3
29-
#defineRANGESTRAT_OVERRIGHT4
30-
#defineRANGESTRAT_AFTER5
31-
#defineRANGESTRAT_ADJACENT6
32-
#defineRANGESTRAT_CONTAINS7
33-
#defineRANGESTRAT_CONTAINED_BY8
34-
#defineRANGESTRAT_CONTAINS_ELEM16
35-
#defineRANGESTRAT_EQ18
36-
3724
/*
3825
* Range class properties used to segregate different classes of ranges in
3926
* GiST. Each unique combination of properties is a class. CLS_EMPTY cannot

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp