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

Commita54075a

Browse files
committed
Update GiST for new pg_opclass arrangement (finally a clean solution
for haskeytype). Update GiST contrib modules too. Add linear-time splitalgorithm for R-tree GiST opclass.From Oleg Bartunov and Teodor Sigaev.
1 parent38a4c35 commita54075a

File tree

10 files changed

+396
-593
lines changed

10 files changed

+396
-593
lines changed

‎contrib/intarray/_int.sql.in

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ CREATE FUNCTION g_int_decompress(opaque) RETURNS opaque
8686
AS 'MODULE_PATHNAME' LANGUAGE 'c';
8787

8888
CREATE FUNCTION g_int_penalty(opaque,opaque,opaque) RETURNS opaque
89-
AS 'MODULE_PATHNAME' LANGUAGE 'c';
89+
AS 'MODULE_PATHNAME' LANGUAGE 'c' with (isstrict);
9090

9191
CREATE FUNCTION g_int_picksplit(opaque, opaque) RETURNS opaque
9292
AS 'MODULE_PATHNAME' LANGUAGE 'c';
@@ -105,7 +105,7 @@ INSERT INTO pg_opclass (opcamid, opcname, opcintype, opcdefault, opckeytype)
105105
'gist__int_ops',
106106
(SELECT oid FROM pg_type WHERE typname = '_int4'),
107107
true,
108-
(SELECT oid FROM pg_type WHERE typname = '_int4'));
108+
0);
109109

110110

111111
-- get the comparators for _intments and store them in a tmp table
@@ -252,7 +252,7 @@ INSERT INTO pg_opclass (opcamid, opcname, opcintype, opcdefault, opckeytype)
252252
'gist__intbig_ops',
253253
(SELECT oid FROM pg_type WHERE typname = '_int4'),
254254
false,
255-
(SELECT oid FROM pg_type WHERE typname = '_int4'));
255+
0);
256256

257257

258258
-- get the comparators for _intments and store them in a tmp table

‎contrib/rtree_gist/expected/rtree_gist.out

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ select count(*) from boxtmp where b && '(1000,1000,0,0)'::box;
1919
(1 row)
2020

2121
drop index bix;
22-
create index bix on boxtmp using gist (b gist_box_ops);
22+
create index bix on boxtmp using gist (b);
2323
select count(*) from boxtmp where b && '(1000,1000,0,0)'::box;
2424
count
2525
-------
@@ -36,7 +36,7 @@ select count(*) from polytmp where p && '(1000,1000),(0,0)'::polygon;
3636
(1 row)
3737

3838
drop index pix;
39-
create index pix on polytmp using gist (p gist_poly_ops);
39+
create index pix on polytmp using gist (p);
4040
select count(*) from polytmp where p && '(1000,1000),(0,0)'::polygon;
4141
count
4242
-------

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp