3 -- Adjust this setting to control where the objects get created.
4 SET search_path
= public;
6 CREATE OR REPLACE FUNCTION digest(text, text)
8 AS 'MODULE_PATHNAME', 'pg_digest'
9 LANGUAGE C
IMMUTABLE STRICT;
11 CREATE OR REPLACE FUNCTION digest(bytea
, text)
13 AS 'MODULE_PATHNAME', 'pg_digest'
14 LANGUAGE C
IMMUTABLE STRICT;
16 CREATE OR REPLACE FUNCTION hmac(text, text, text)
18 AS 'MODULE_PATHNAME', 'pg_hmac'
19 LANGUAGE C
IMMUTABLE STRICT;
21 CREATE OR REPLACE FUNCTION hmac(bytea
, bytea
, text)
23 AS 'MODULE_PATHNAME', 'pg_hmac'
24 LANGUAGE C
IMMUTABLE STRICT;
26 CREATE OR REPLACE FUNCTION crypt(text, text)
28 AS 'MODULE_PATHNAME', 'pg_crypt'
29 LANGUAGE C
IMMUTABLE STRICT;
31 CREATE OR REPLACE FUNCTION gen_salt(text)
33 AS 'MODULE_PATHNAME', 'pg_gen_salt'
34 LANGUAGE C
VOLATILE STRICT;
36 CREATE OR REPLACE FUNCTION gen_salt(text, int4
)
38 AS 'MODULE_PATHNAME', 'pg_gen_salt_rounds'
39 LANGUAGE C
VOLATILE STRICT;
41 CREATE OR REPLACE FUNCTION encrypt(bytea
, bytea
, text)
43 AS 'MODULE_PATHNAME', 'pg_encrypt'
44 LANGUAGE C
IMMUTABLE STRICT;
46 CREATE OR REPLACE FUNCTION decrypt(bytea
, bytea
, text)
48 AS 'MODULE_PATHNAME', 'pg_decrypt'
49 LANGUAGE C
IMMUTABLE STRICT;
51 CREATE OR REPLACE FUNCTION encrypt_iv(bytea
, bytea
, bytea
, text)
53 AS 'MODULE_PATHNAME', 'pg_encrypt_iv'
54 LANGUAGE C
IMMUTABLE STRICT;
56 CREATE OR REPLACE FUNCTION decrypt_iv(bytea
, bytea
, bytea
, text)
58 AS 'MODULE_PATHNAME', 'pg_decrypt_iv'
59 LANGUAGE C
IMMUTABLE STRICT;
61 CREATE OR REPLACE FUNCTION gen_random_bytes(int4
)
63 AS 'MODULE_PATHNAME', 'pg_random_bytes'
64 LANGUAGE 'C' VOLATILE STRICT;
67 -- pgp_sym_encrypt(data, key)
69 CREATE OR REPLACE FUNCTION pgp_sym_encrypt(text, text)
71 AS 'MODULE_PATHNAME', 'pgp_sym_encrypt_text'
74 CREATE OR REPLACE FUNCTION pgp_sym_encrypt_bytea(bytea
, text)
76 AS 'MODULE_PATHNAME', 'pgp_sym_encrypt_bytea'
80 -- pgp_sym_encrypt(data, key, args)
82 CREATE OR REPLACE FUNCTION pgp_sym_encrypt(text, text, text)
84 AS 'MODULE_PATHNAME', 'pgp_sym_encrypt_text'
87 CREATE OR REPLACE FUNCTION pgp_sym_encrypt_bytea(bytea
, text, text)
89 AS 'MODULE_PATHNAME', 'pgp_sym_encrypt_bytea'
93 -- pgp_sym_decrypt(data, key)
95 CREATE OR REPLACE FUNCTION pgp_sym_decrypt(bytea
, text)
97 AS 'MODULE_PATHNAME', 'pgp_sym_decrypt_text'
98 LANGUAGE C
IMMUTABLE STRICT;
100 CREATE OR REPLACE FUNCTION pgp_sym_decrypt_bytea(bytea
, text)
102 AS 'MODULE_PATHNAME', 'pgp_sym_decrypt_bytea'
103 LANGUAGE C
IMMUTABLE STRICT;
106 -- pgp_sym_decrypt(data, key, args)
108 CREATE OR REPLACE FUNCTION pgp_sym_decrypt(bytea
, text, text)
110 AS 'MODULE_PATHNAME', 'pgp_sym_decrypt_text'
111 LANGUAGE C
IMMUTABLE STRICT;
113 CREATE OR REPLACE FUNCTION pgp_sym_decrypt_bytea(bytea
, text, text)
115 AS 'MODULE_PATHNAME', 'pgp_sym_decrypt_bytea'
116 LANGUAGE C
IMMUTABLE STRICT;
119 -- pgp_pub_encrypt(data, key)
121 CREATE OR REPLACE FUNCTION pgp_pub_encrypt(text, bytea
)
123 AS 'MODULE_PATHNAME', 'pgp_pub_encrypt_text'
126 CREATE OR REPLACE FUNCTION pgp_pub_encrypt_bytea(bytea
, bytea
)
128 AS 'MODULE_PATHNAME', 'pgp_pub_encrypt_bytea'
132 -- pgp_pub_encrypt(data, key, args)
134 CREATE OR REPLACE FUNCTION pgp_pub_encrypt(text, bytea
, text)
136 AS 'MODULE_PATHNAME', 'pgp_pub_encrypt_text'
139 CREATE OR REPLACE FUNCTION pgp_pub_encrypt_bytea(bytea
, bytea
, text)
141 AS 'MODULE_PATHNAME', 'pgp_pub_encrypt_bytea'
145 -- pgp_pub_decrypt(data, key)
147 CREATE OR REPLACE FUNCTION pgp_pub_decrypt(bytea
, bytea
)
149 AS 'MODULE_PATHNAME', 'pgp_pub_decrypt_text'
150 LANGUAGE C
IMMUTABLE STRICT;
152 CREATE OR REPLACE FUNCTION pgp_pub_decrypt_bytea(bytea
, bytea
)
154 AS 'MODULE_PATHNAME', 'pgp_pub_decrypt_bytea'
155 LANGUAGE C
IMMUTABLE STRICT;
158 -- pgp_pub_decrypt(data, key, psw)
160 CREATE OR REPLACE FUNCTION pgp_pub_decrypt(bytea
, bytea
, text)
162 AS 'MODULE_PATHNAME', 'pgp_pub_decrypt_text'
163 LANGUAGE C
IMMUTABLE STRICT;
165 CREATE OR REPLACE FUNCTION pgp_pub_decrypt_bytea(bytea
, bytea
, text)
167 AS 'MODULE_PATHNAME', 'pgp_pub_decrypt_bytea'
168 LANGUAGE C
IMMUTABLE STRICT;
171 -- pgp_pub_decrypt(data, key, psw, arg)
173 CREATE OR REPLACE FUNCTION pgp_pub_decrypt(bytea
, bytea
, text, text)
175 AS 'MODULE_PATHNAME', 'pgp_pub_decrypt_text'
176 LANGUAGE C
IMMUTABLE STRICT;
178 CREATE OR REPLACE FUNCTION pgp_pub_decrypt_bytea(bytea
, bytea
, text, text)
180 AS 'MODULE_PATHNAME', 'pgp_pub_decrypt_bytea'
181 LANGUAGE C
IMMUTABLE STRICT;
186 CREATE OR REPLACE FUNCTION pgp_key_id(bytea
)
188 AS 'MODULE_PATHNAME', 'pgp_key_id_w'
189 LANGUAGE C
IMMUTABLE STRICT;
194 CREATE OR REPLACE FUNCTION armor(bytea
)
196 AS 'MODULE_PATHNAME', 'pg_armor'
197 LANGUAGE C
IMMUTABLE STRICT;
199 CREATE OR REPLACE FUNCTION dearmor(text)
201 AS 'MODULE_PATHNAME', 'pg_dearmor'
202 LANGUAGE C
IMMUTABLE STRICT;