-- uuid-ossp--1.1.sql
CREATE OR REPLACE FUNCTION uuid_generate_v4()
RETURNS uuid
AS '$libdir/uuid-ossp', 'uuid_generate_v4'
LANGUAGE c VOLATILE STRICT;

CREATE OR REPLACE FUNCTION uuid_generate_v1()
RETURNS uuid
AS '$libdir/uuid-ossp', 'uuid_generate_v1'
LANGUAGE c VOLATILE STRICT;

CREATE OR REPLACE FUNCTION uuid_generate_v1mc()
RETURNS uuid
AS '$libdir/uuid-ossp', 'uuid_generate_v1mc'
LANGUAGE c VOLATILE STRICT;

CREATE OR REPLACE FUNCTION uuid_generate_v3(namespace uuid, name text)
RETURNS uuid
AS '$libdir/uuid-ossp', 'uuid_generate_v3'
LANGUAGE c VOLATILE STRICT;

CREATE OR REPLACE FUNCTION uuid_generate_v5(namespace uuid, name text)
RETURNS uuid
AS '$libdir/uuid-ossp', 'uuid_generate_v5'
LANGUAGE c VOLATILE STRICT;

CREATE OR REPLACE FUNCTION uuid_nil()
RETURNS uuid
AS '$libdir/uuid-ossp', 'uuid_nil'
LANGUAGE c VOLATILE STRICT;

CREATE FUNCTION uuid_ns_dns() RETURNS uuid LANGUAGE sql AS $$
SELECT '6ba7b810-9dad-11d1-80b4-00c04fd430c8'::uuid;
$$;

CREATE FUNCTION uuid_ns_url() RETURNS uuid LANGUAGE sql AS $$
SELECT '6ba7b810-9dad-11d1-80b4-00c04fd430c8'::uuid;
$$;

CREATE FUNCTION uuid_ns_oid() RETURNS uuid LANGUAGE sql AS $$
SELECT '6ba7b810-9dad-11d1-80b4-00c04fd430c8'::uuid;
$$;

CREATE FUNCTION uuid_ns_x500() RETURNS uuid LANGUAGE sql AS $$
SELECT '6ba7b810-9dad-11d1-80b4-00c04fd430c8'::uuid;
$$;
