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
ef27c81d
Commit
ef27c81d
authored
Nov 17, 2011
by
Alvaro Herrera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't quote language name
Same as previous patch, but give it actual thought this time
parent
b44dda71
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
42 deletions
+42
-42
contrib/isn/isn--1.0.sql
contrib/isn/isn--1.0.sql
+41
-41
contrib/pgcrypto/pgcrypto--1.0.sql
contrib/pgcrypto/pgcrypto--1.0.sql
+1
-1
No files found.
contrib/isn/isn--1.0.sql
View file @
ef27c81d
...
@@ -18,12 +18,12 @@
...
@@ -18,12 +18,12 @@
CREATE
FUNCTION
ean13_in
(
cstring
)
CREATE
FUNCTION
ean13_in
(
cstring
)
RETURNS
ean13
RETURNS
ean13
AS
'MODULE_PATHNAME'
AS
'MODULE_PATHNAME'
LANGUAGE
'C'
LANGUAGE
C
IMMUTABLE
STRICT
;
IMMUTABLE
STRICT
;
CREATE
FUNCTION
ean13_out
(
ean13
)
CREATE
FUNCTION
ean13_out
(
ean13
)
RETURNS
cstring
RETURNS
cstring
AS
'MODULE_PATHNAME'
AS
'MODULE_PATHNAME'
LANGUAGE
'C'
LANGUAGE
C
IMMUTABLE
STRICT
;
IMMUTABLE
STRICT
;
CREATE
TYPE
ean13
(
CREATE
TYPE
ean13
(
INPUT
=
ean13_in
,
INPUT
=
ean13_in
,
...
@@ -36,12 +36,12 @@ COMMENT ON TYPE ean13
...
@@ -36,12 +36,12 @@ COMMENT ON TYPE ean13
CREATE
FUNCTION
isbn13_in
(
cstring
)
CREATE
FUNCTION
isbn13_in
(
cstring
)
RETURNS
isbn13
RETURNS
isbn13
AS
'MODULE_PATHNAME'
,
'isbn_in'
AS
'MODULE_PATHNAME'
,
'isbn_in'
LANGUAGE
'C'
LANGUAGE
C
IMMUTABLE
STRICT
;
IMMUTABLE
STRICT
;
CREATE
FUNCTION
ean13_out
(
isbn13
)
CREATE
FUNCTION
ean13_out
(
isbn13
)
RETURNS
cstring
RETURNS
cstring
AS
'MODULE_PATHNAME'
AS
'MODULE_PATHNAME'
LANGUAGE
'C'
LANGUAGE
C
IMMUTABLE
STRICT
;
IMMUTABLE
STRICT
;
CREATE
TYPE
isbn13
(
CREATE
TYPE
isbn13
(
INPUT
=
isbn13_in
,
INPUT
=
isbn13_in
,
...
@@ -54,12 +54,12 @@ COMMENT ON TYPE isbn13
...
@@ -54,12 +54,12 @@ COMMENT ON TYPE isbn13
CREATE
FUNCTION
ismn13_in
(
cstring
)
CREATE
FUNCTION
ismn13_in
(
cstring
)
RETURNS
ismn13
RETURNS
ismn13
AS
'MODULE_PATHNAME'
,
'ismn_in'
AS
'MODULE_PATHNAME'
,
'ismn_in'
LANGUAGE
'C'
LANGUAGE
C
IMMUTABLE
STRICT
;
IMMUTABLE
STRICT
;
CREATE
FUNCTION
ean13_out
(
ismn13
)
CREATE
FUNCTION
ean13_out
(
ismn13
)
RETURNS
cstring
RETURNS
cstring
AS
'MODULE_PATHNAME'
AS
'MODULE_PATHNAME'
LANGUAGE
'C'
LANGUAGE
C
IMMUTABLE
STRICT
;
IMMUTABLE
STRICT
;
CREATE
TYPE
ismn13
(
CREATE
TYPE
ismn13
(
INPUT
=
ismn13_in
,
INPUT
=
ismn13_in
,
...
@@ -72,12 +72,12 @@ COMMENT ON TYPE ismn13
...
@@ -72,12 +72,12 @@ COMMENT ON TYPE ismn13
CREATE
FUNCTION
issn13_in
(
cstring
)
CREATE
FUNCTION
issn13_in
(
cstring
)
RETURNS
issn13
RETURNS
issn13
AS
'MODULE_PATHNAME'
,
'issn_in'
AS
'MODULE_PATHNAME'
,
'issn_in'
LANGUAGE
'C'
LANGUAGE
C
IMMUTABLE
STRICT
;
IMMUTABLE
STRICT
;
CREATE
FUNCTION
ean13_out
(
issn13
)
CREATE
FUNCTION
ean13_out
(
issn13
)
RETURNS
cstring
RETURNS
cstring
AS
'MODULE_PATHNAME'
AS
'MODULE_PATHNAME'
LANGUAGE
'C'
LANGUAGE
C
IMMUTABLE
STRICT
;
IMMUTABLE
STRICT
;
CREATE
TYPE
issn13
(
CREATE
TYPE
issn13
(
INPUT
=
issn13_in
,
INPUT
=
issn13_in
,
...
@@ -92,12 +92,12 @@ COMMENT ON TYPE issn13
...
@@ -92,12 +92,12 @@ COMMENT ON TYPE issn13
CREATE
FUNCTION
isbn_in
(
cstring
)
CREATE
FUNCTION
isbn_in
(
cstring
)
RETURNS
isbn
RETURNS
isbn
AS
'MODULE_PATHNAME'
AS
'MODULE_PATHNAME'
LANGUAGE
'C'
LANGUAGE
C
IMMUTABLE
STRICT
;
IMMUTABLE
STRICT
;
CREATE
FUNCTION
isn_out
(
isbn
)
CREATE
FUNCTION
isn_out
(
isbn
)
RETURNS
cstring
RETURNS
cstring
AS
'MODULE_PATHNAME'
AS
'MODULE_PATHNAME'
LANGUAGE
'C'
LANGUAGE
C
IMMUTABLE
STRICT
;
IMMUTABLE
STRICT
;
CREATE
TYPE
isbn
(
CREATE
TYPE
isbn
(
INPUT
=
isbn_in
,
INPUT
=
isbn_in
,
...
@@ -110,12 +110,12 @@ COMMENT ON TYPE isbn
...
@@ -110,12 +110,12 @@ COMMENT ON TYPE isbn
CREATE
FUNCTION
ismn_in
(
cstring
)
CREATE
FUNCTION
ismn_in
(
cstring
)
RETURNS
ismn
RETURNS
ismn
AS
'MODULE_PATHNAME'
AS
'MODULE_PATHNAME'
LANGUAGE
'C'
LANGUAGE
C
IMMUTABLE
STRICT
;
IMMUTABLE
STRICT
;
CREATE
FUNCTION
isn_out
(
ismn
)
CREATE
FUNCTION
isn_out
(
ismn
)
RETURNS
cstring
RETURNS
cstring
AS
'MODULE_PATHNAME'
AS
'MODULE_PATHNAME'
LANGUAGE
'C'
LANGUAGE
C
IMMUTABLE
STRICT
;
IMMUTABLE
STRICT
;
CREATE
TYPE
ismn
(
CREATE
TYPE
ismn
(
INPUT
=
ismn_in
,
INPUT
=
ismn_in
,
...
@@ -128,12 +128,12 @@ COMMENT ON TYPE ismn
...
@@ -128,12 +128,12 @@ COMMENT ON TYPE ismn
CREATE
FUNCTION
issn_in
(
cstring
)
CREATE
FUNCTION
issn_in
(
cstring
)
RETURNS
issn
RETURNS
issn
AS
'MODULE_PATHNAME'
AS
'MODULE_PATHNAME'
LANGUAGE
'C'
LANGUAGE
C
IMMUTABLE
STRICT
;
IMMUTABLE
STRICT
;
CREATE
FUNCTION
isn_out
(
issn
)
CREATE
FUNCTION
isn_out
(
issn
)
RETURNS
cstring
RETURNS
cstring
AS
'MODULE_PATHNAME'
AS
'MODULE_PATHNAME'
LANGUAGE
'C'
LANGUAGE
C
IMMUTABLE
STRICT
;
IMMUTABLE
STRICT
;
CREATE
TYPE
issn
(
CREATE
TYPE
issn
(
INPUT
=
issn_in
,
INPUT
=
issn_in
,
...
@@ -146,12 +146,12 @@ COMMENT ON TYPE issn
...
@@ -146,12 +146,12 @@ COMMENT ON TYPE issn
CREATE
FUNCTION
upc_in
(
cstring
)
CREATE
FUNCTION
upc_in
(
cstring
)
RETURNS
upc
RETURNS
upc
AS
'MODULE_PATHNAME'
AS
'MODULE_PATHNAME'
LANGUAGE
'C'
LANGUAGE
C
IMMUTABLE
STRICT
;
IMMUTABLE
STRICT
;
CREATE
FUNCTION
isn_out
(
upc
)
CREATE
FUNCTION
isn_out
(
upc
)
RETURNS
cstring
RETURNS
cstring
AS
'MODULE_PATHNAME'
AS
'MODULE_PATHNAME'
LANGUAGE
'C'
LANGUAGE
C
IMMUTABLE
STRICT
;
IMMUTABLE
STRICT
;
CREATE
TYPE
upc
(
CREATE
TYPE
upc
(
INPUT
=
upc_in
,
INPUT
=
upc_in
,
...
@@ -3041,31 +3041,31 @@ ALTER OPERATOR FAMILY isn_ops USING hash ADD
...
@@ -3041,31 +3041,31 @@ ALTER OPERATOR FAMILY isn_ops USING hash ADD
CREATE
FUNCTION
isbn13
(
ean13
)
CREATE
FUNCTION
isbn13
(
ean13
)
RETURNS
isbn13
RETURNS
isbn13
AS
'MODULE_PATHNAME'
,
'isbn_cast_from_ean13'
AS
'MODULE_PATHNAME'
,
'isbn_cast_from_ean13'
LANGUAGE
'C'
IMMUTABLE
STRICT
;
LANGUAGE
C
IMMUTABLE
STRICT
;
CREATE
FUNCTION
ismn13
(
ean13
)
CREATE
FUNCTION
ismn13
(
ean13
)
RETURNS
ismn13
RETURNS
ismn13
AS
'MODULE_PATHNAME'
,
'ismn_cast_from_ean13'
AS
'MODULE_PATHNAME'
,
'ismn_cast_from_ean13'
LANGUAGE
'C'
IMMUTABLE
STRICT
;
LANGUAGE
C
IMMUTABLE
STRICT
;
CREATE
FUNCTION
issn13
(
ean13
)
CREATE
FUNCTION
issn13
(
ean13
)
RETURNS
issn13
RETURNS
issn13
AS
'MODULE_PATHNAME'
,
'issn_cast_from_ean13'
AS
'MODULE_PATHNAME'
,
'issn_cast_from_ean13'
LANGUAGE
'C'
IMMUTABLE
STRICT
;
LANGUAGE
C
IMMUTABLE
STRICT
;
CREATE
FUNCTION
isbn
(
ean13
)
CREATE
FUNCTION
isbn
(
ean13
)
RETURNS
isbn
RETURNS
isbn
AS
'MODULE_PATHNAME'
,
'isbn_cast_from_ean13'
AS
'MODULE_PATHNAME'
,
'isbn_cast_from_ean13'
LANGUAGE
'C'
IMMUTABLE
STRICT
;
LANGUAGE
C
IMMUTABLE
STRICT
;
CREATE
FUNCTION
ismn
(
ean13
)
CREATE
FUNCTION
ismn
(
ean13
)
RETURNS
ismn
RETURNS
ismn
AS
'MODULE_PATHNAME'
,
'ismn_cast_from_ean13'
AS
'MODULE_PATHNAME'
,
'ismn_cast_from_ean13'
LANGUAGE
'C'
IMMUTABLE
STRICT
;
LANGUAGE
C
IMMUTABLE
STRICT
;
CREATE
FUNCTION
issn
(
ean13
)
CREATE
FUNCTION
issn
(
ean13
)
RETURNS
issn
RETURNS
issn
AS
'MODULE_PATHNAME'
,
'issn_cast_from_ean13'
AS
'MODULE_PATHNAME'
,
'issn_cast_from_ean13'
LANGUAGE
'C'
IMMUTABLE
STRICT
;
LANGUAGE
C
IMMUTABLE
STRICT
;
CREATE
FUNCTION
upc
(
ean13
)
CREATE
FUNCTION
upc
(
ean13
)
RETURNS
upc
RETURNS
upc
AS
'MODULE_PATHNAME'
,
'upc_cast_from_ean13'
AS
'MODULE_PATHNAME'
,
'upc_cast_from_ean13'
LANGUAGE
'C'
IMMUTABLE
STRICT
;
LANGUAGE
C
IMMUTABLE
STRICT
;
CREATE
CAST
(
ean13
AS
isbn13
)
WITH
FUNCTION
isbn13
(
ean13
);
CREATE
CAST
(
ean13
AS
isbn13
)
WITH
FUNCTION
isbn13
(
ean13
);
...
@@ -3097,83 +3097,83 @@ CREATE CAST (issn13 AS issn) WITHOUT FUNCTION AS ASSIGNMENT;
...
@@ -3097,83 +3097,83 @@ CREATE CAST (issn13 AS issn) WITHOUT FUNCTION AS ASSIGNMENT;
CREATE
FUNCTION
make_valid
(
ean13
)
CREATE
FUNCTION
make_valid
(
ean13
)
RETURNS
ean13
RETURNS
ean13
AS
'MODULE_PATHNAME'
AS
'MODULE_PATHNAME'
LANGUAGE
'C'
LANGUAGE
C
IMMUTABLE
STRICT
;
IMMUTABLE
STRICT
;
CREATE
FUNCTION
make_valid
(
isbn13
)
CREATE
FUNCTION
make_valid
(
isbn13
)
RETURNS
isbn13
RETURNS
isbn13
AS
'MODULE_PATHNAME'
AS
'MODULE_PATHNAME'
LANGUAGE
'C'
LANGUAGE
C
IMMUTABLE
STRICT
;
IMMUTABLE
STRICT
;
CREATE
FUNCTION
make_valid
(
ismn13
)
CREATE
FUNCTION
make_valid
(
ismn13
)
RETURNS
ismn13
RETURNS
ismn13
AS
'MODULE_PATHNAME'
AS
'MODULE_PATHNAME'
LANGUAGE
'C'
LANGUAGE
C
IMMUTABLE
STRICT
;
IMMUTABLE
STRICT
;
CREATE
FUNCTION
make_valid
(
issn13
)
CREATE
FUNCTION
make_valid
(
issn13
)
RETURNS
issn13
RETURNS
issn13
AS
'MODULE_PATHNAME'
AS
'MODULE_PATHNAME'
LANGUAGE
'C'
LANGUAGE
C
IMMUTABLE
STRICT
;
IMMUTABLE
STRICT
;
CREATE
FUNCTION
make_valid
(
isbn
)
CREATE
FUNCTION
make_valid
(
isbn
)
RETURNS
isbn
RETURNS
isbn
AS
'MODULE_PATHNAME'
AS
'MODULE_PATHNAME'
LANGUAGE
'C'
LANGUAGE
C
IMMUTABLE
STRICT
;
IMMUTABLE
STRICT
;
CREATE
FUNCTION
make_valid
(
ismn
)
CREATE
FUNCTION
make_valid
(
ismn
)
RETURNS
ismn
RETURNS
ismn
AS
'MODULE_PATHNAME'
AS
'MODULE_PATHNAME'
LANGUAGE
'C'
LANGUAGE
C
IMMUTABLE
STRICT
;
IMMUTABLE
STRICT
;
CREATE
FUNCTION
make_valid
(
issn
)
CREATE
FUNCTION
make_valid
(
issn
)
RETURNS
issn
RETURNS
issn
AS
'MODULE_PATHNAME'
AS
'MODULE_PATHNAME'
LANGUAGE
'C'
LANGUAGE
C
IMMUTABLE
STRICT
;
IMMUTABLE
STRICT
;
CREATE
FUNCTION
make_valid
(
upc
)
CREATE
FUNCTION
make_valid
(
upc
)
RETURNS
upc
RETURNS
upc
AS
'MODULE_PATHNAME'
AS
'MODULE_PATHNAME'
LANGUAGE
'C'
LANGUAGE
C
IMMUTABLE
STRICT
;
IMMUTABLE
STRICT
;
CREATE
FUNCTION
is_valid
(
ean13
)
CREATE
FUNCTION
is_valid
(
ean13
)
RETURNS
boolean
RETURNS
boolean
AS
'MODULE_PATHNAME'
AS
'MODULE_PATHNAME'
LANGUAGE
'C'
LANGUAGE
C
IMMUTABLE
STRICT
;
IMMUTABLE
STRICT
;
CREATE
FUNCTION
is_valid
(
isbn13
)
CREATE
FUNCTION
is_valid
(
isbn13
)
RETURNS
boolean
RETURNS
boolean
AS
'MODULE_PATHNAME'
AS
'MODULE_PATHNAME'
LANGUAGE
'C'
LANGUAGE
C
IMMUTABLE
STRICT
;
IMMUTABLE
STRICT
;
CREATE
FUNCTION
is_valid
(
ismn13
)
CREATE
FUNCTION
is_valid
(
ismn13
)
RETURNS
boolean
RETURNS
boolean
AS
'MODULE_PATHNAME'
AS
'MODULE_PATHNAME'
LANGUAGE
'C'
LANGUAGE
C
IMMUTABLE
STRICT
;
IMMUTABLE
STRICT
;
CREATE
FUNCTION
is_valid
(
issn13
)
CREATE
FUNCTION
is_valid
(
issn13
)
RETURNS
boolean
RETURNS
boolean
AS
'MODULE_PATHNAME'
AS
'MODULE_PATHNAME'
LANGUAGE
'C'
LANGUAGE
C
IMMUTABLE
STRICT
;
IMMUTABLE
STRICT
;
CREATE
FUNCTION
is_valid
(
isbn
)
CREATE
FUNCTION
is_valid
(
isbn
)
RETURNS
boolean
RETURNS
boolean
AS
'MODULE_PATHNAME'
AS
'MODULE_PATHNAME'
LANGUAGE
'C'
LANGUAGE
C
IMMUTABLE
STRICT
;
IMMUTABLE
STRICT
;
CREATE
FUNCTION
is_valid
(
ismn
)
CREATE
FUNCTION
is_valid
(
ismn
)
RETURNS
boolean
RETURNS
boolean
AS
'MODULE_PATHNAME'
AS
'MODULE_PATHNAME'
LANGUAGE
'C'
LANGUAGE
C
IMMUTABLE
STRICT
;
IMMUTABLE
STRICT
;
CREATE
FUNCTION
is_valid
(
issn
)
CREATE
FUNCTION
is_valid
(
issn
)
RETURNS
boolean
RETURNS
boolean
AS
'MODULE_PATHNAME'
AS
'MODULE_PATHNAME'
LANGUAGE
'C'
LANGUAGE
C
IMMUTABLE
STRICT
;
IMMUTABLE
STRICT
;
CREATE
FUNCTION
is_valid
(
upc
)
CREATE
FUNCTION
is_valid
(
upc
)
RETURNS
boolean
RETURNS
boolean
AS
'MODULE_PATHNAME'
AS
'MODULE_PATHNAME'
LANGUAGE
'C'
LANGUAGE
C
IMMUTABLE
STRICT
;
IMMUTABLE
STRICT
;
--
--
...
@@ -3183,7 +3183,7 @@ CREATE FUNCTION is_valid(upc)
...
@@ -3183,7 +3183,7 @@ CREATE FUNCTION is_valid(upc)
CREATE
FUNCTION
isn_weak
(
boolean
)
CREATE
FUNCTION
isn_weak
(
boolean
)
RETURNS
boolean
RETURNS
boolean
AS
'MODULE_PATHNAME'
,
'accept_weak_input'
AS
'MODULE_PATHNAME'
,
'accept_weak_input'
LANGUAGE
'C'
LANGUAGE
C
IMMUTABLE
STRICT
;
IMMUTABLE
STRICT
;
--
--
...
@@ -3192,5 +3192,5 @@ CREATE FUNCTION isn_weak(boolean)
...
@@ -3192,5 +3192,5 @@ CREATE FUNCTION isn_weak(boolean)
CREATE
FUNCTION
isn_weak
()
CREATE
FUNCTION
isn_weak
()
RETURNS
boolean
RETURNS
boolean
AS
'MODULE_PATHNAME'
,
'weak_input_status'
AS
'MODULE_PATHNAME'
,
'weak_input_status'
LANGUAGE
'C'
LANGUAGE
C
IMMUTABLE
STRICT
;
IMMUTABLE
STRICT
;
contrib/pgcrypto/pgcrypto--1.0.sql
View file @
ef27c81d
...
@@ -61,7 +61,7 @@ LANGUAGE C IMMUTABLE STRICT;
...
@@ -61,7 +61,7 @@ LANGUAGE C IMMUTABLE STRICT;
CREATE
FUNCTION
gen_random_bytes
(
int4
)
CREATE
FUNCTION
gen_random_bytes
(
int4
)
RETURNS
bytea
RETURNS
bytea
AS
'MODULE_PATHNAME'
,
'pg_random_bytes'
AS
'MODULE_PATHNAME'
,
'pg_random_bytes'
LANGUAGE
'C'
VOLATILE
STRICT
;
LANGUAGE
C
VOLATILE
STRICT
;
--
--
-- pgp_sym_encrypt(data, key)
-- pgp_sym_encrypt(data, key)
...
...
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