Skip to content

Commit 1fd7db8

Browse files
author
Markus Nullmeier
committedJul 20, 2018
make the GiST penalty function STRICT again
'make installcheck' will crash at index creation without a 'STRICT' penalty function. Probably we want to make all methods of the GiST operator class 'STRICT', as suggested by the docs in "Internals / GiST Indexes / Extensibility".
1 parent 1a84dec commit 1fd7db8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎pgs_gist.sql.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ CREATE FUNCTION g_spherekey_union(bytea, internal)
7676
CREATE FUNCTION g_spherekey_penalty (internal, internal, internal)
7777
RETURNS internal
7878
AS 'MODULE_PATHNAME', 'g_spherekey_penalty'
79-
LANGUAGE 'c';
79+
LANGUAGE 'c'
80+
STRICT;
8081

8182
CREATE FUNCTION g_spherekey_picksplit(internal, internal)
8283
RETURNS internal

0 commit comments

Comments
 (0)
Please sign in to comment.