-- uuid support function uninstall script
-- written by nathan wagner and placed in the public domain

drop function uuid_v1();
drop function uuid_v1mc();
drop function uuid_v3(uuid, text);
drop function uuid_v4();
drop function uuid_v5(uuid, text);
drop function uuid_recent();
drop function uuid_nil();
drop function uuid_ns_dns();
drop function uuid_ns_oid();
drop function uuid_ns_url();
drop function uuid_ns_x500();
drop function uuid_url(text);
drop function uuid_dns(text);
drop function uuid_oid(text);
drop function uuid_x500(text);

-- Casts

-- Bytea

drop cast if exists (uuid as bytea);
drop cast if exists (bytea as uuid);
drop function uuid_bytea_cast(uuid);
drop function uuid_bytea_uncast(bytea);

-- Numeric

drop cast if exists (uuid as numeric);
drop cast if exists (numeric as uuid);
drop function uuid_numeric_cast(uuid);
drop function uuid_numeric_uncast(numeric);

-- Bit and bit varying

drop cast if exists (uuid as bit(128));
drop cast if exists (uuid as bit varying);
drop cast if exists (bit(128) as uuid);
drop cast if exists (bit varying as uuid);

drop function uuid_bit_cast(uuid);
drop function uuid_bit_uncast(bit(128));

-- Field extraction functions

drop function uuid_version(uuid);
drop function uuid_macaddr(uuid);
drop function uuid_timestamp(uuid);
drop function uuid_timestamptz(uuid);
