Commit 92266303 authored by Tom Lane's avatar Tom Lane

Support functions for index opclasses should be immutable.

Found by running opr_sanity on contrib modules.
parent 591abe1b
...@@ -263,37 +263,37 @@ CREATE OPERATOR ~ ( ...@@ -263,37 +263,37 @@ CREATE OPERATOR ~ (
CREATE OR REPLACE FUNCTION g_cube_consistent(internal,cube,int4) CREATE OR REPLACE FUNCTION g_cube_consistent(internal,cube,int4)
RETURNS bool RETURNS bool
AS 'MODULE_PATHNAME' AS 'MODULE_PATHNAME'
LANGUAGE C; LANGUAGE C IMMUTABLE;
CREATE OR REPLACE FUNCTION g_cube_compress(internal) CREATE OR REPLACE FUNCTION g_cube_compress(internal)
RETURNS internal RETURNS internal
AS 'MODULE_PATHNAME' AS 'MODULE_PATHNAME'
LANGUAGE C; LANGUAGE C IMMUTABLE;
CREATE OR REPLACE FUNCTION g_cube_decompress(internal) CREATE OR REPLACE FUNCTION g_cube_decompress(internal)
RETURNS internal RETURNS internal
AS 'MODULE_PATHNAME' AS 'MODULE_PATHNAME'
LANGUAGE C; LANGUAGE C IMMUTABLE;
CREATE OR REPLACE FUNCTION g_cube_penalty(internal,internal,internal) CREATE OR REPLACE FUNCTION g_cube_penalty(internal,internal,internal)
RETURNS internal RETURNS internal
AS 'MODULE_PATHNAME' AS 'MODULE_PATHNAME'
LANGUAGE C STRICT; LANGUAGE C IMMUTABLE STRICT;
CREATE OR REPLACE FUNCTION g_cube_picksplit(internal, internal) CREATE OR REPLACE FUNCTION g_cube_picksplit(internal, internal)
RETURNS internal RETURNS internal
AS 'MODULE_PATHNAME' AS 'MODULE_PATHNAME'
LANGUAGE C; LANGUAGE C IMMUTABLE;
CREATE OR REPLACE FUNCTION g_cube_union(internal, internal) CREATE OR REPLACE FUNCTION g_cube_union(internal, internal)
RETURNS cube RETURNS cube
AS 'MODULE_PATHNAME' AS 'MODULE_PATHNAME'
LANGUAGE C; LANGUAGE C IMMUTABLE;
CREATE OR REPLACE FUNCTION g_cube_same(cube, cube, internal) CREATE OR REPLACE FUNCTION g_cube_same(cube, cube, internal)
RETURNS internal RETURNS internal
AS 'MODULE_PATHNAME' AS 'MODULE_PATHNAME'
LANGUAGE C; LANGUAGE C IMMUTABLE;
-- Create the operator classes for indexing -- Create the operator classes for indexing
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment