Commit d94582f4 authored by Tom Lane's avatar Tom Lane

Mark contrib's GiST and GIN opclass support functions as STRICT, for safety.

(Note: GiST penalty functions could possibly be non-strict, but none are at
present.)
parent 4c817527
This diff is collapsed.
/* $PostgreSQL: pgsql/contrib/cube/cube.sql.in,v 1.24 2008/04/14 17:05:32 tgl Exp $ */ /* $PostgreSQL: pgsql/contrib/cube/cube.sql.in,v 1.25 2009/06/11 18:30:03 tgl Exp $ */
-- Adjust this setting to control where the objects get created. -- Adjust this setting to control where the objects get created.
SET search_path = public; SET search_path = public;
...@@ -265,17 +265,17 @@ CREATE OPERATOR ~ ( ...@@ -265,17 +265,17 @@ CREATE OPERATOR ~ (
CREATE OR REPLACE FUNCTION g_cube_consistent(internal,cube,int,oid,internal) CREATE OR REPLACE FUNCTION g_cube_consistent(internal,cube,int,oid,internal)
RETURNS bool RETURNS bool
AS 'MODULE_PATHNAME' AS 'MODULE_PATHNAME'
LANGUAGE C IMMUTABLE; LANGUAGE C IMMUTABLE STRICT;
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 IMMUTABLE; LANGUAGE C IMMUTABLE STRICT;
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 IMMUTABLE; LANGUAGE C IMMUTABLE STRICT;
CREATE OR REPLACE FUNCTION g_cube_penalty(internal,internal,internal) CREATE OR REPLACE FUNCTION g_cube_penalty(internal,internal,internal)
RETURNS internal RETURNS internal
...@@ -285,17 +285,17 @@ LANGUAGE C IMMUTABLE STRICT; ...@@ -285,17 +285,17 @@ 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 IMMUTABLE; LANGUAGE C IMMUTABLE STRICT;
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 IMMUTABLE; LANGUAGE C IMMUTABLE STRICT;
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 IMMUTABLE; LANGUAGE C IMMUTABLE STRICT;
-- Create the operator classes for indexing -- Create the operator classes for indexing
......
/* $PostgreSQL: pgsql/contrib/hstore/hstore.sql.in,v 1.10 2009/03/25 22:19:01 tgl Exp $ */ /* $PostgreSQL: pgsql/contrib/hstore/hstore.sql.in,v 1.11 2009/06/11 18:30:03 tgl Exp $ */
-- Adjust this setting to control where the objects get created. -- Adjust this setting to control where the objects get created.
SET search_path = public; SET search_path = public;
...@@ -127,7 +127,7 @@ CREATE OPERATOR ~ ( ...@@ -127,7 +127,7 @@ CREATE OPERATOR ~ (
CREATE OR REPLACE FUNCTION tconvert(text,text) CREATE OR REPLACE FUNCTION tconvert(text,text)
RETURNS hstore RETURNS hstore
AS 'MODULE_PATHNAME' AS 'MODULE_PATHNAME'
LANGUAGE C IMMUTABLE; LANGUAGE C IMMUTABLE; -- not STRICT
CREATE OPERATOR => ( CREATE OPERATOR => (
LEFTARG = text, LEFTARG = text,
...@@ -187,12 +187,12 @@ CREATE TYPE ghstore ( ...@@ -187,12 +187,12 @@ CREATE TYPE ghstore (
CREATE OR REPLACE FUNCTION ghstore_compress(internal) CREATE OR REPLACE FUNCTION ghstore_compress(internal)
RETURNS internal RETURNS internal
AS 'MODULE_PATHNAME' AS 'MODULE_PATHNAME'
LANGUAGE C IMMUTABLE; LANGUAGE C IMMUTABLE STRICT;
CREATE OR REPLACE FUNCTION ghstore_decompress(internal) CREATE OR REPLACE FUNCTION ghstore_decompress(internal)
RETURNS internal RETURNS internal
AS 'MODULE_PATHNAME' AS 'MODULE_PATHNAME'
LANGUAGE C IMMUTABLE; LANGUAGE C IMMUTABLE STRICT;
CREATE OR REPLACE FUNCTION ghstore_penalty(internal,internal,internal) CREATE OR REPLACE FUNCTION ghstore_penalty(internal,internal,internal)
RETURNS internal RETURNS internal
...@@ -202,22 +202,22 @@ LANGUAGE C IMMUTABLE STRICT; ...@@ -202,22 +202,22 @@ LANGUAGE C IMMUTABLE STRICT;
CREATE OR REPLACE FUNCTION ghstore_picksplit(internal, internal) CREATE OR REPLACE FUNCTION ghstore_picksplit(internal, internal)
RETURNS internal RETURNS internal
AS 'MODULE_PATHNAME' AS 'MODULE_PATHNAME'
LANGUAGE C IMMUTABLE; LANGUAGE C IMMUTABLE STRICT;
CREATE OR REPLACE FUNCTION ghstore_union(internal, internal) CREATE OR REPLACE FUNCTION ghstore_union(internal, internal)
RETURNS internal RETURNS internal
AS 'MODULE_PATHNAME' AS 'MODULE_PATHNAME'
LANGUAGE C IMMUTABLE; LANGUAGE C IMMUTABLE STRICT;
CREATE OR REPLACE FUNCTION ghstore_same(internal, internal, internal) CREATE OR REPLACE FUNCTION ghstore_same(internal, internal, internal)
RETURNS internal RETURNS internal
AS 'MODULE_PATHNAME' AS 'MODULE_PATHNAME'
LANGUAGE C IMMUTABLE; LANGUAGE C IMMUTABLE STRICT;
CREATE OR REPLACE FUNCTION ghstore_consistent(internal,internal,int,oid,internal) CREATE OR REPLACE FUNCTION ghstore_consistent(internal,internal,int,oid,internal)
RETURNS bool RETURNS bool
AS 'MODULE_PATHNAME' AS 'MODULE_PATHNAME'
LANGUAGE C IMMUTABLE; LANGUAGE C IMMUTABLE STRICT;
-- register the opclass for indexing (not as default) -- register the opclass for indexing (not as default)
CREATE OPERATOR CLASS gist_hstore_ops CREATE OPERATOR CLASS gist_hstore_ops
...@@ -242,17 +242,17 @@ AS ...@@ -242,17 +242,17 @@ AS
CREATE OR REPLACE FUNCTION gin_extract_hstore(internal, internal) CREATE OR REPLACE FUNCTION gin_extract_hstore(internal, internal)
RETURNS internal RETURNS internal
AS 'MODULE_PATHNAME' AS 'MODULE_PATHNAME'
LANGUAGE C IMMUTABLE; LANGUAGE C IMMUTABLE STRICT;
CREATE OR REPLACE FUNCTION gin_extract_hstore_query(internal, internal, int2, internal, internal) CREATE OR REPLACE FUNCTION gin_extract_hstore_query(internal, internal, int2, internal, internal)
RETURNS internal RETURNS internal
AS 'MODULE_PATHNAME' AS 'MODULE_PATHNAME'
LANGUAGE C IMMUTABLE; LANGUAGE C IMMUTABLE STRICT;
CREATE OR REPLACE FUNCTION gin_consistent_hstore(internal, int2, internal, int4, internal, internal) CREATE OR REPLACE FUNCTION gin_consistent_hstore(internal, int2, internal, int4, internal, internal)
RETURNS bool RETURNS bool
AS 'MODULE_PATHNAME' AS 'MODULE_PATHNAME'
LANGUAGE C IMMUTABLE; LANGUAGE C IMMUTABLE STRICT;
CREATE OPERATOR CLASS gin_hstore_ops CREATE OPERATOR CLASS gin_hstore_ops
DEFAULT FOR TYPE hstore USING gin DEFAULT FOR TYPE hstore USING gin
......
/* $PostgreSQL: pgsql/contrib/intarray/_int.sql.in,v 1.31 2009/06/07 20:09:34 tgl Exp $ */ /* $PostgreSQL: pgsql/contrib/intarray/_int.sql.in,v 1.32 2009/06/11 18:30:03 tgl Exp $ */
-- Adjust this setting to control where the objects get created. -- Adjust this setting to control where the objects get created.
SET search_path = public; SET search_path = public;
...@@ -326,17 +326,17 @@ CREATE OPERATOR & ( ...@@ -326,17 +326,17 @@ CREATE OPERATOR & (
CREATE OR REPLACE FUNCTION g_int_consistent(internal,_int4,int,oid,internal) CREATE OR REPLACE FUNCTION g_int_consistent(internal,_int4,int,oid,internal)
RETURNS bool RETURNS bool
AS 'MODULE_PATHNAME' AS 'MODULE_PATHNAME'
LANGUAGE C IMMUTABLE; LANGUAGE C IMMUTABLE STRICT;
CREATE OR REPLACE FUNCTION g_int_compress(internal) CREATE OR REPLACE FUNCTION g_int_compress(internal)
RETURNS internal RETURNS internal
AS 'MODULE_PATHNAME' AS 'MODULE_PATHNAME'
LANGUAGE C IMMUTABLE; LANGUAGE C IMMUTABLE STRICT;
CREATE OR REPLACE FUNCTION g_int_decompress(internal) CREATE OR REPLACE FUNCTION g_int_decompress(internal)
RETURNS internal RETURNS internal
AS 'MODULE_PATHNAME' AS 'MODULE_PATHNAME'
LANGUAGE C IMMUTABLE; LANGUAGE C IMMUTABLE STRICT;
CREATE OR REPLACE FUNCTION g_int_penalty(internal,internal,internal) CREATE OR REPLACE FUNCTION g_int_penalty(internal,internal,internal)
RETURNS internal RETURNS internal
...@@ -346,17 +346,17 @@ LANGUAGE C IMMUTABLE STRICT; ...@@ -346,17 +346,17 @@ LANGUAGE C IMMUTABLE STRICT;
CREATE OR REPLACE FUNCTION g_int_picksplit(internal, internal) CREATE OR REPLACE FUNCTION g_int_picksplit(internal, internal)
RETURNS internal RETURNS internal
AS 'MODULE_PATHNAME' AS 'MODULE_PATHNAME'
LANGUAGE C IMMUTABLE; LANGUAGE C IMMUTABLE STRICT;
CREATE OR REPLACE FUNCTION g_int_union(internal, internal) CREATE OR REPLACE FUNCTION g_int_union(internal, internal)
RETURNS _int4 RETURNS _int4
AS 'MODULE_PATHNAME' AS 'MODULE_PATHNAME'
LANGUAGE C IMMUTABLE; LANGUAGE C IMMUTABLE STRICT;
CREATE OR REPLACE FUNCTION g_int_same(_int4, _int4, internal) CREATE OR REPLACE FUNCTION g_int_same(_int4, _int4, internal)
RETURNS internal RETURNS internal
AS 'MODULE_PATHNAME' AS 'MODULE_PATHNAME'
LANGUAGE C IMMUTABLE; LANGUAGE C IMMUTABLE STRICT;
-- Create the operator class for indexing -- Create the operator class for indexing
...@@ -403,17 +403,17 @@ CREATE TYPE intbig_gkey ( ...@@ -403,17 +403,17 @@ CREATE TYPE intbig_gkey (
CREATE OR REPLACE FUNCTION g_intbig_consistent(internal,internal,int,oid,internal) CREATE OR REPLACE FUNCTION g_intbig_consistent(internal,internal,int,oid,internal)
RETURNS bool RETURNS bool
AS 'MODULE_PATHNAME' AS 'MODULE_PATHNAME'
LANGUAGE C IMMUTABLE; LANGUAGE C IMMUTABLE STRICT;
CREATE OR REPLACE FUNCTION g_intbig_compress(internal) CREATE OR REPLACE FUNCTION g_intbig_compress(internal)
RETURNS internal RETURNS internal
AS 'MODULE_PATHNAME' AS 'MODULE_PATHNAME'
LANGUAGE C IMMUTABLE; LANGUAGE C IMMUTABLE STRICT;
CREATE OR REPLACE FUNCTION g_intbig_decompress(internal) CREATE OR REPLACE FUNCTION g_intbig_decompress(internal)
RETURNS internal RETURNS internal
AS 'MODULE_PATHNAME' AS 'MODULE_PATHNAME'
LANGUAGE C IMMUTABLE; LANGUAGE C IMMUTABLE STRICT;
CREATE OR REPLACE FUNCTION g_intbig_penalty(internal,internal,internal) CREATE OR REPLACE FUNCTION g_intbig_penalty(internal,internal,internal)
RETURNS internal RETURNS internal
...@@ -423,17 +423,17 @@ LANGUAGE C IMMUTABLE STRICT; ...@@ -423,17 +423,17 @@ LANGUAGE C IMMUTABLE STRICT;
CREATE OR REPLACE FUNCTION g_intbig_picksplit(internal, internal) CREATE OR REPLACE FUNCTION g_intbig_picksplit(internal, internal)
RETURNS internal RETURNS internal
AS 'MODULE_PATHNAME' AS 'MODULE_PATHNAME'
LANGUAGE C IMMUTABLE; LANGUAGE C IMMUTABLE STRICT;
CREATE OR REPLACE FUNCTION g_intbig_union(internal, internal) CREATE OR REPLACE FUNCTION g_intbig_union(internal, internal)
RETURNS _int4 RETURNS _int4
AS 'MODULE_PATHNAME' AS 'MODULE_PATHNAME'
LANGUAGE C IMMUTABLE; LANGUAGE C IMMUTABLE STRICT;
CREATE OR REPLACE FUNCTION g_intbig_same(internal, internal, internal) CREATE OR REPLACE FUNCTION g_intbig_same(internal, internal, internal)
RETURNS internal RETURNS internal
AS 'MODULE_PATHNAME' AS 'MODULE_PATHNAME'
LANGUAGE C IMMUTABLE; LANGUAGE C IMMUTABLE STRICT;
-- register the opclass for indexing (not as default) -- register the opclass for indexing (not as default)
...@@ -461,12 +461,12 @@ AS ...@@ -461,12 +461,12 @@ AS
CREATE OR REPLACE FUNCTION ginint4_queryextract(internal, internal, int2, internal, internal) CREATE OR REPLACE FUNCTION ginint4_queryextract(internal, internal, int2, internal, internal)
RETURNS internal RETURNS internal
AS 'MODULE_PATHNAME' AS 'MODULE_PATHNAME'
LANGUAGE C IMMUTABLE; LANGUAGE C IMMUTABLE STRICT;
CREATE OR REPLACE FUNCTION ginint4_consistent(internal, int2, internal, int4, internal, internal) CREATE OR REPLACE FUNCTION ginint4_consistent(internal, int2, internal, int4, internal, internal)
RETURNS bool RETURNS bool
AS 'MODULE_PATHNAME' AS 'MODULE_PATHNAME'
LANGUAGE C IMMUTABLE; LANGUAGE C IMMUTABLE STRICT;
CREATE OPERATOR CLASS gin__int_ops CREATE OPERATOR CLASS gin__int_ops
FOR TYPE _int4 USING gin FOR TYPE _int4 USING gin
......
/* $PostgreSQL: pgsql/contrib/ltree/ltree.sql.in,v 1.17 2008/04/14 17:05:32 tgl Exp $ */ /* $PostgreSQL: pgsql/contrib/ltree/ltree.sql.in,v 1.18 2009/06/11 18:30:03 tgl Exp $ */
-- Adjust this setting to control where the objects get created. -- Adjust this setting to control where the objects get created.
SET search_path = public; SET search_path = public;
...@@ -497,25 +497,25 @@ CREATE TYPE ltree_gist ( ...@@ -497,25 +497,25 @@ CREATE TYPE ltree_gist (
CREATE OR REPLACE FUNCTION ltree_consistent(internal,internal,int2,oid,internal) CREATE OR REPLACE FUNCTION ltree_consistent(internal,internal,int2,oid,internal)
RETURNS bool as 'MODULE_PATHNAME' LANGUAGE C IMMUTABLE; RETURNS bool as 'MODULE_PATHNAME' LANGUAGE C IMMUTABLE STRICT;
CREATE OR REPLACE FUNCTION ltree_compress(internal) CREATE OR REPLACE FUNCTION ltree_compress(internal)
RETURNS internal as 'MODULE_PATHNAME' LANGUAGE C IMMUTABLE; RETURNS internal as 'MODULE_PATHNAME' LANGUAGE C IMMUTABLE STRICT;
CREATE OR REPLACE FUNCTION ltree_decompress(internal) CREATE OR REPLACE FUNCTION ltree_decompress(internal)
RETURNS internal as 'MODULE_PATHNAME' LANGUAGE C IMMUTABLE; RETURNS internal as 'MODULE_PATHNAME' LANGUAGE C IMMUTABLE STRICT;
CREATE OR REPLACE FUNCTION ltree_penalty(internal,internal,internal) CREATE OR REPLACE FUNCTION ltree_penalty(internal,internal,internal)
RETURNS internal as 'MODULE_PATHNAME' LANGUAGE C IMMUTABLE STRICT; RETURNS internal as 'MODULE_PATHNAME' LANGUAGE C IMMUTABLE STRICT;
CREATE OR REPLACE FUNCTION ltree_picksplit(internal, internal) CREATE OR REPLACE FUNCTION ltree_picksplit(internal, internal)
RETURNS internal as 'MODULE_PATHNAME' LANGUAGE C IMMUTABLE; RETURNS internal as 'MODULE_PATHNAME' LANGUAGE C IMMUTABLE STRICT;
CREATE OR REPLACE FUNCTION ltree_union(internal, internal) CREATE OR REPLACE FUNCTION ltree_union(internal, internal)
RETURNS int4 as 'MODULE_PATHNAME' LANGUAGE C IMMUTABLE; RETURNS int4 as 'MODULE_PATHNAME' LANGUAGE C IMMUTABLE STRICT;
CREATE OR REPLACE FUNCTION ltree_same(internal, internal, internal) CREATE OR REPLACE FUNCTION ltree_same(internal, internal, internal)
RETURNS internal as 'MODULE_PATHNAME' LANGUAGE C IMMUTABLE; RETURNS internal as 'MODULE_PATHNAME' LANGUAGE C IMMUTABLE STRICT;
CREATE OPERATOR CLASS gist_ltree_ops CREATE OPERATOR CLASS gist_ltree_ops
DEFAULT FOR TYPE ltree USING gist AS DEFAULT FOR TYPE ltree USING gist AS
...@@ -825,12 +825,12 @@ CREATE OPERATOR ?@ ( ...@@ -825,12 +825,12 @@ CREATE OPERATOR ?@ (
CREATE OR REPLACE FUNCTION _ltree_consistent(internal,internal,int2,oid,internal) CREATE OR REPLACE FUNCTION _ltree_consistent(internal,internal,int2,oid,internal)
RETURNS bool RETURNS bool
AS 'MODULE_PATHNAME' AS 'MODULE_PATHNAME'
LANGUAGE C IMMUTABLE; LANGUAGE C IMMUTABLE STRICT;
CREATE OR REPLACE FUNCTION _ltree_compress(internal) CREATE OR REPLACE FUNCTION _ltree_compress(internal)
RETURNS internal RETURNS internal
AS 'MODULE_PATHNAME' AS 'MODULE_PATHNAME'
LANGUAGE C IMMUTABLE; LANGUAGE C IMMUTABLE STRICT;
CREATE OR REPLACE FUNCTION _ltree_penalty(internal,internal,internal) CREATE OR REPLACE FUNCTION _ltree_penalty(internal,internal,internal)
RETURNS internal RETURNS internal
...@@ -840,17 +840,17 @@ LANGUAGE C IMMUTABLE STRICT; ...@@ -840,17 +840,17 @@ LANGUAGE C IMMUTABLE STRICT;
CREATE OR REPLACE FUNCTION _ltree_picksplit(internal, internal) CREATE OR REPLACE FUNCTION _ltree_picksplit(internal, internal)
RETURNS internal RETURNS internal
AS 'MODULE_PATHNAME' AS 'MODULE_PATHNAME'
LANGUAGE C IMMUTABLE; LANGUAGE C IMMUTABLE STRICT;
CREATE OR REPLACE FUNCTION _ltree_union(internal, internal) CREATE OR REPLACE FUNCTION _ltree_union(internal, internal)
RETURNS int4 RETURNS int4
AS 'MODULE_PATHNAME' AS 'MODULE_PATHNAME'
LANGUAGE C IMMUTABLE; LANGUAGE C IMMUTABLE STRICT;
CREATE OR REPLACE FUNCTION _ltree_same(internal, internal, internal) CREATE OR REPLACE FUNCTION _ltree_same(internal, internal, internal)
RETURNS internal RETURNS internal
AS 'MODULE_PATHNAME' AS 'MODULE_PATHNAME'
LANGUAGE C IMMUTABLE; LANGUAGE C IMMUTABLE STRICT;
CREATE OPERATOR CLASS gist__ltree_ops CREATE OPERATOR CLASS gist__ltree_ops
DEFAULT FOR TYPE _ltree USING gist AS DEFAULT FOR TYPE _ltree USING gist AS
......
/* $PostgreSQL: pgsql/contrib/pg_trgm/pg_trgm.sql.in,v 1.9 2009/03/25 22:19:01 tgl Exp $ */ /* $PostgreSQL: pgsql/contrib/pg_trgm/pg_trgm.sql.in,v 1.10 2009/06/11 18:30:03 tgl Exp $ */
-- Adjust this setting to control where the objects get created. -- Adjust this setting to control where the objects get created.
SET search_path = public; SET search_path = public;
...@@ -58,37 +58,37 @@ CREATE TYPE gtrgm ( ...@@ -58,37 +58,37 @@ CREATE TYPE gtrgm (
CREATE OR REPLACE FUNCTION gtrgm_consistent(internal,text,int,oid,internal) CREATE OR REPLACE FUNCTION gtrgm_consistent(internal,text,int,oid,internal)
RETURNS bool RETURNS bool
AS 'MODULE_PATHNAME' AS 'MODULE_PATHNAME'
LANGUAGE C IMMUTABLE; LANGUAGE C IMMUTABLE STRICT;
CREATE OR REPLACE FUNCTION gtrgm_compress(internal) CREATE OR REPLACE FUNCTION gtrgm_compress(internal)
RETURNS internal RETURNS internal
AS 'MODULE_PATHNAME' AS 'MODULE_PATHNAME'
LANGUAGE C IMMUTABLE; LANGUAGE C IMMUTABLE STRICT;
CREATE OR REPLACE FUNCTION gtrgm_decompress(internal) CREATE OR REPLACE FUNCTION gtrgm_decompress(internal)
RETURNS internal RETURNS internal
AS 'MODULE_PATHNAME' AS 'MODULE_PATHNAME'
LANGUAGE C IMMUTABLE; LANGUAGE C IMMUTABLE STRICT;
CREATE OR REPLACE FUNCTION gtrgm_penalty(internal,internal,internal) CREATE OR REPLACE FUNCTION gtrgm_penalty(internal,internal,internal)
RETURNS internal RETURNS internal
AS 'MODULE_PATHNAME' AS 'MODULE_PATHNAME'
LANGUAGE C STRICT IMMUTABLE; LANGUAGE C IMMUTABLE STRICT;
CREATE OR REPLACE FUNCTION gtrgm_picksplit(internal, internal) CREATE OR REPLACE FUNCTION gtrgm_picksplit(internal, internal)
RETURNS internal RETURNS internal
AS 'MODULE_PATHNAME' AS 'MODULE_PATHNAME'
LANGUAGE C IMMUTABLE; LANGUAGE C IMMUTABLE STRICT;
CREATE OR REPLACE FUNCTION gtrgm_union(bytea, internal) CREATE OR REPLACE FUNCTION gtrgm_union(bytea, internal)
RETURNS _int4 RETURNS _int4
AS 'MODULE_PATHNAME' AS 'MODULE_PATHNAME'
LANGUAGE C IMMUTABLE; LANGUAGE C IMMUTABLE STRICT;
CREATE OR REPLACE FUNCTION gtrgm_same(gtrgm, gtrgm, internal) CREATE OR REPLACE FUNCTION gtrgm_same(gtrgm, gtrgm, internal)
RETURNS internal RETURNS internal
AS 'MODULE_PATHNAME' AS 'MODULE_PATHNAME'
LANGUAGE C IMMUTABLE; LANGUAGE C IMMUTABLE STRICT;
-- create the operator class for gist -- create the operator class for gist
CREATE OPERATOR CLASS gist_trgm_ops CREATE OPERATOR CLASS gist_trgm_ops
...@@ -108,17 +108,17 @@ AS ...@@ -108,17 +108,17 @@ AS
CREATE OR REPLACE FUNCTION gin_extract_trgm(text, internal) CREATE OR REPLACE FUNCTION gin_extract_trgm(text, internal)
RETURNS internal RETURNS internal
AS 'MODULE_PATHNAME' AS 'MODULE_PATHNAME'
LANGUAGE C IMMUTABLE; LANGUAGE C IMMUTABLE STRICT;
CREATE OR REPLACE FUNCTION gin_extract_trgm(text, internal, int2, internal, internal) CREATE OR REPLACE FUNCTION gin_extract_trgm(text, internal, int2, internal, internal)
RETURNS internal RETURNS internal
AS 'MODULE_PATHNAME' AS 'MODULE_PATHNAME'
LANGUAGE C IMMUTABLE; LANGUAGE C IMMUTABLE STRICT;
CREATE OR REPLACE FUNCTION gin_trgm_consistent(internal, int2, text, int4, internal, internal) CREATE OR REPLACE FUNCTION gin_trgm_consistent(internal, int2, text, int4, internal, internal)
RETURNS bool RETURNS bool
AS 'MODULE_PATHNAME' AS 'MODULE_PATHNAME'
LANGUAGE C IMMUTABLE; LANGUAGE C IMMUTABLE STRICT;
-- create the operator class for gin -- create the operator class for gin
CREATE OPERATOR CLASS gin_trgm_ops CREATE OPERATOR CLASS gin_trgm_ops
......
/* $PostgreSQL: pgsql/contrib/seg/seg.sql.in,v 1.18 2008/04/18 18:43:08 alvherre Exp $ */ /* $PostgreSQL: pgsql/contrib/seg/seg.sql.in,v 1.19 2009/06/11 18:30:03 tgl Exp $ */
-- Adjust this setting to control where the objects get created. -- Adjust this setting to control where the objects get created.
SET search_path = public; SET search_path = public;
...@@ -330,37 +330,37 @@ CREATE OPERATOR ~ ( ...@@ -330,37 +330,37 @@ CREATE OPERATOR ~ (
CREATE OR REPLACE FUNCTION gseg_consistent(internal,seg,int,oid,internal) CREATE OR REPLACE FUNCTION gseg_consistent(internal,seg,int,oid,internal)
RETURNS bool RETURNS bool
AS 'MODULE_PATHNAME' AS 'MODULE_PATHNAME'
LANGUAGE C IMMUTABLE; LANGUAGE C IMMUTABLE STRICT;
CREATE OR REPLACE FUNCTION gseg_compress(internal) CREATE OR REPLACE FUNCTION gseg_compress(internal)
RETURNS internal RETURNS internal
AS 'MODULE_PATHNAME' AS 'MODULE_PATHNAME'
LANGUAGE C IMMUTABLE; LANGUAGE C IMMUTABLE STRICT;
CREATE OR REPLACE FUNCTION gseg_decompress(internal) CREATE OR REPLACE FUNCTION gseg_decompress(internal)
RETURNS internal RETURNS internal
AS 'MODULE_PATHNAME' AS 'MODULE_PATHNAME'
LANGUAGE C IMMUTABLE; LANGUAGE C IMMUTABLE STRICT;
CREATE OR REPLACE FUNCTION gseg_penalty(internal,internal,internal) CREATE OR REPLACE FUNCTION gseg_penalty(internal,internal,internal)
RETURNS internal RETURNS internal
AS 'MODULE_PATHNAME' AS 'MODULE_PATHNAME'
LANGUAGE C STRICT IMMUTABLE; LANGUAGE C IMMUTABLE STRICT;
CREATE OR REPLACE FUNCTION gseg_picksplit(internal, internal) CREATE OR REPLACE FUNCTION gseg_picksplit(internal, internal)
RETURNS internal RETURNS internal
AS 'MODULE_PATHNAME' AS 'MODULE_PATHNAME'
LANGUAGE C IMMUTABLE; LANGUAGE C IMMUTABLE STRICT;
CREATE OR REPLACE FUNCTION gseg_union(internal, internal) CREATE OR REPLACE FUNCTION gseg_union(internal, internal)
RETURNS seg RETURNS seg
AS 'MODULE_PATHNAME' AS 'MODULE_PATHNAME'
LANGUAGE C IMMUTABLE; LANGUAGE C IMMUTABLE STRICT;
CREATE OR REPLACE FUNCTION gseg_same(seg, seg, internal) CREATE OR REPLACE FUNCTION gseg_same(seg, seg, internal)
RETURNS internal RETURNS internal
AS 'MODULE_PATHNAME' AS 'MODULE_PATHNAME'
LANGUAGE C IMMUTABLE; LANGUAGE C IMMUTABLE STRICT;
-- 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