Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
f8203f90
Commit
f8203f90
authored
Sep 30, 2007
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support functions for index opclasses should be immutable.
Found by running opr_sanity on contrib modules.
parent
60e83cec
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
24 deletions
+24
-24
contrib/pg_trgm/pg_trgm.sql.in
contrib/pg_trgm/pg_trgm.sql.in
+17
-17
contrib/seg/seg.sql.in
contrib/seg/seg.sql.in
+7
-7
No files found.
contrib/pg_trgm/pg_trgm.sql.in
View file @
f8203f90
...
...
@@ -5,27 +5,27 @@ BEGIN;
create function set_limit(float4)
returns float4
AS 'MODULE_PATHNAME'
LANGUAGE C
RETURNS NULL ON NULL INPU
T IMMUTABLE;
LANGUAGE C
STRIC
T IMMUTABLE;
create function show_limit()
returns float4
AS 'MODULE_PATHNAME'
LANGUAGE C
RETURNS NULL ON NULL INPU
T IMMUTABLE;
LANGUAGE C
STRIC
T IMMUTABLE;
create function show_trgm(text)
returns _text
AS 'MODULE_PATHNAME'
LANGUAGE C
RETURNS NULL ON NULL INPU
T IMMUTABLE;
LANGUAGE C
STRIC
T IMMUTABLE;
create function similarity(text,text)
returns float4
AS 'MODULE_PATHNAME'
LANGUAGE C
RETURNS NULL ON NULL INPU
T IMMUTABLE;
LANGUAGE C
STRIC
T IMMUTABLE;
create function similarity_op(text,text)
returns bool
AS 'MODULE_PATHNAME'
LANGUAGE C
RETURNS NULL ON NULL INPU
T IMMUTABLE;
LANGUAGE C
STRIC
T IMMUTABLE;
CREATE OPERATOR % (
LEFTARG = text,
...
...
@@ -40,12 +40,12 @@ CREATE OPERATOR % (
CREATE FUNCTION gtrgm_in(cstring)
RETURNS gtrgm
AS 'MODULE_PATHNAME'
LANGUAGE C
RETURNS NULL ON NULL INPU
T;
LANGUAGE C
STRIC
T;
CREATE FUNCTION gtrgm_out(gtrgm)
RETURNS cstring
AS 'MODULE_PATHNAME'
LANGUAGE C
RETURNS NULL ON NULL INPU
T;
LANGUAGE C
STRIC
T;
CREATE TYPE gtrgm (
INTERNALLENGTH = -1,
...
...
@@ -57,37 +57,37 @@ CREATE TYPE gtrgm (
CREATE FUNCTION gtrgm_consistent(gtrgm,internal,int4)
RETURNS bool
AS 'MODULE_PATHNAME'
LANGUAGE C;
LANGUAGE C
IMMUTABLE
;
CREATE FUNCTION gtrgm_compress(internal)
RETURNS internal
AS 'MODULE_PATHNAME'
LANGUAGE C;
LANGUAGE C
IMMUTABLE
;
CREATE FUNCTION gtrgm_decompress(internal)
RETURNS internal
AS 'MODULE_PATHNAME'
LANGUAGE C;
LANGUAGE C
IMMUTABLE
;
CREATE FUNCTION gtrgm_penalty(internal,internal,internal)
RETURNS internal
AS 'MODULE_PATHNAME'
LANGUAGE C
RETURNS NULL ON NULL INPUT
;
LANGUAGE C
STRICT IMMUTABLE
;
CREATE FUNCTION gtrgm_picksplit(internal, internal)
RETURNS internal
AS 'MODULE_PATHNAME'
LANGUAGE C;
LANGUAGE C
IMMUTABLE
;
CREATE FUNCTION gtrgm_union(bytea, internal)
RETURNS _int4
AS 'MODULE_PATHNAME'
LANGUAGE C;
LANGUAGE C
IMMUTABLE
;
CREATE FUNCTION gtrgm_same(gtrgm, gtrgm, internal)
RETURNS internal
AS 'MODULE_PATHNAME'
LANGUAGE C;
LANGUAGE C
IMMUTABLE
;
-- create the operator class for gist
CREATE OPERATOR CLASS gist_trgm_ops
...
...
@@ -107,17 +107,17 @@ AS
CREATE FUNCTION gin_extract_trgm(text, internal)
RETURNS internal
AS 'MODULE_PATHNAME'
LANGUAGE C;
LANGUAGE C
IMMUTABLE
;
CREATE FUNCTION gin_extract_trgm(text, internal, internal)
RETURNS internal
AS 'MODULE_PATHNAME'
LANGUAGE C;
LANGUAGE C
IMMUTABLE
;
CREATE FUNCTION gin_trgm_consistent(internal, internal, text)
RETURNS internal
AS 'MODULE_PATHNAME'
LANGUAGE C;
LANGUAGE C
IMMUTABLE
;
-- create the operator class for gin
CREATE OPERATOR CLASS gin_trgm_ops
...
...
contrib/seg/seg.sql.in
View file @
f8203f90
...
...
@@ -323,37 +323,37 @@ CREATE OPERATOR ~ (
CREATE FUNCTION gseg_consistent(internal,seg,int4)
RETURNS bool
AS 'MODULE_PATHNAME'
LANGUAGE C;
LANGUAGE C
IMMUTABLE
;
CREATE FUNCTION gseg_compress(internal)
RETURNS internal
AS 'MODULE_PATHNAME'
LANGUAGE C;
LANGUAGE C
IMMUTABLE
;
CREATE FUNCTION gseg_decompress(internal)
RETURNS internal
AS 'MODULE_PATHNAME'
LANGUAGE C;
LANGUAGE C
IMMUTABLE
;
CREATE FUNCTION gseg_penalty(internal,internal,internal)
RETURNS internal
AS 'MODULE_PATHNAME'
LANGUAGE C STRICT;
LANGUAGE C STRICT
IMMUTABLE
;
CREATE FUNCTION gseg_picksplit(internal, internal)
RETURNS internal
AS 'MODULE_PATHNAME'
LANGUAGE C;
LANGUAGE C
IMMUTABLE
;
CREATE FUNCTION gseg_union(internal, internal)
RETURNS seg
AS 'MODULE_PATHNAME'
LANGUAGE C;
LANGUAGE C
IMMUTABLE
;
CREATE FUNCTION gseg_same(seg, seg, internal)
RETURNS internal
AS 'MODULE_PATHNAME'
LANGUAGE C;
LANGUAGE C
IMMUTABLE
;
-- Create the operator classes for indexing
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment