Skip to content

Commit 9226630

Browse files
committed
Support functions for index opclasses should be immutable.
Found by running opr_sanity on contrib modules.
1 parent 591abe1 commit 9226630

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

contrib/cube/cube.sql.in

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -263,37 +263,37 @@ CREATE OPERATOR ~ (
263263
CREATE OR REPLACE FUNCTION g_cube_consistent(internal,cube,int4)
264264
RETURNS bool
265265
AS 'MODULE_PATHNAME'
266-
LANGUAGE C;
266+
LANGUAGE C IMMUTABLE;
267267

268268
CREATE OR REPLACE FUNCTION g_cube_compress(internal)
269269
RETURNS internal
270270
AS 'MODULE_PATHNAME'
271-
LANGUAGE C;
271+
LANGUAGE C IMMUTABLE;
272272

273273
CREATE OR REPLACE FUNCTION g_cube_decompress(internal)
274274
RETURNS internal
275275
AS 'MODULE_PATHNAME'
276-
LANGUAGE C;
276+
LANGUAGE C IMMUTABLE;
277277

278278
CREATE OR REPLACE FUNCTION g_cube_penalty(internal,internal,internal)
279279
RETURNS internal
280280
AS 'MODULE_PATHNAME'
281-
LANGUAGE C STRICT;
281+
LANGUAGE C IMMUTABLE STRICT;
282282

283283
CREATE OR REPLACE FUNCTION g_cube_picksplit(internal, internal)
284284
RETURNS internal
285285
AS 'MODULE_PATHNAME'
286-
LANGUAGE C;
286+
LANGUAGE C IMMUTABLE;
287287

288288
CREATE OR REPLACE FUNCTION g_cube_union(internal, internal)
289289
RETURNS cube
290290
AS 'MODULE_PATHNAME'
291-
LANGUAGE C;
291+
LANGUAGE C IMMUTABLE;
292292

293293
CREATE OR REPLACE FUNCTION g_cube_same(cube, cube, internal)
294294
RETURNS internal
295295
AS 'MODULE_PATHNAME'
296-
LANGUAGE C;
296+
LANGUAGE C IMMUTABLE;
297297

298298

299299
-- Create the operator classes for indexing

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy