2015-08-29 20:17:13 +00:00
|
|
|
CREATE FUNCTION uri_hash(uri) RETURNS integer
|
|
|
|
IMMUTABLE
|
|
|
|
STRICT
|
|
|
|
LANGUAGE C
|
|
|
|
AS '$libdir/uri';
|
|
|
|
|
|
|
|
CREATE OPERATOR CLASS uri_ops_hash
|
|
|
|
DEFAULT FOR TYPE uri USING hash AS
|
|
|
|
OPERATOR 1 =,
|
|
|
|
FUNCTION 1 uri_hash(uri);
|
2015-10-03 04:31:37 +00:00
|
|
|
|
|
|
|
CREATE FUNCTION uri_escape(text, space_to_plus boolean DEFAULT false, normalize_breaks boolean DEFAULT false) RETURNS text
|
|
|
|
IMMUTABLE
|
|
|
|
STRICT
|
|
|
|
LANGUAGE C
|
|
|
|
AS '$libdir/uri';
|
|
|
|
|
|
|
|
CREATE FUNCTION uri_unescape(text, plus_to_space boolean DEFAULT false, break_conversion boolean DEFAULT false) RETURNS text
|
|
|
|
IMMUTABLE
|
|
|
|
STRICT
|
|
|
|
LANGUAGE C
|
|
|
|
AS '$libdir/uri';
|