1CREATE FUNCTION uri_hash(uri) RETURNS integer
2    IMMUTABLE
3    STRICT
4    LANGUAGE C
5    AS '$libdir/uri';
6
7CREATE OPERATOR CLASS uri_ops_hash
8    DEFAULT FOR TYPE uri USING hash AS
9        OPERATOR        1       =,
10        FUNCTION        1       uri_hash(uri);
11
12CREATE FUNCTION uri_escape(text, space_to_plus boolean DEFAULT false, normalize_breaks boolean DEFAULT false) RETURNS text
13    IMMUTABLE
14    STRICT
15    LANGUAGE C
16    AS '$libdir/uri';
17
18CREATE FUNCTION uri_unescape(text, plus_to_space boolean DEFAULT false, break_conversion boolean DEFAULT false) RETURNS text
19    IMMUTABLE
20    STRICT
21    LANGUAGE C
22    AS '$libdir/uri';
23