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

Commit2d42b82

Browse files
committed
g_spoint3_fetch was already part of the spoint3 opclass in older versions
Allow upgrading of older installations (made pre 1.1.5) that alreadyhave g_spoint3_fetch in the spoint3 opclass.Close#82.
1 parent1366e73 commit2d42b82

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed
Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
11
-- add "fetch" support function to enable index-only scans for spoint3
22

3-
ALTER OPERATOR FAMILY spoint3 USING gist ADD
4-
FUNCTION 9 (spoint, spoint) g_spoint3_fetch (internal);
3+
-- g_spoint3_fetch was already part of the spoint3 opclass in older versions
4+
-- around 1.0, but later made optional (see bdc37d1)
5+
6+
DO $$
7+
BEGIN
8+
ALTER OPERATOR FAMILY spoint3 USING gist ADD
9+
FUNCTION 9 (spoint, spoint) g_spoint3_fetch (internal);
10+
EXCEPTION
11+
WHEN duplicate_object THEN NULL;
12+
WHEN OTHERS THEN RAISE;
13+
END;
14+
$$;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp