--
-- PostgreSQL database dump
--

SET statement_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = off;
SET check_function_bodies = false;
SET client_min_messages = warning;
SET escape_string_warning = off;

--
-- Name: functions; Type: SCHEMA; Schema: -; Owner: -
--

CREATE SCHEMA functions;


SET search_path = functions, pg_catalog;

--
-- Name: boolean(text); Type: FUNCTION; Schema: functions; Owner: -
--

CREATE FUNCTION "boolean"(value text) RETURNS boolean
    LANGUAGE plpgsql IMMUTABLE
    AS $$
BEGIN
    BEGIN
        RETURN value;
    EXCEPTION
        WHEN data_exception THEN
            RAISE WARNING '%', SQLERRM;
            RETURN NULL;
    END;
    RETURN new;
END;
$$;


--
-- Name: double precision(text); Type: FUNCTION; Schema: functions; Owner: -
--

CREATE FUNCTION "double precision"(value text) RETURNS double precision
    LANGUAGE plpgsql IMMUTABLE
    AS $$
BEGIN
    BEGIN
        RETURN value;
    EXCEPTION
        WHEN data_exception THEN
            RAISE WARNING '%', SQLERRM;
            RETURN NULL;
    END;
    RETURN new;
END;
$$;


--
-- Name: timestamp with time zone(text); Type: FUNCTION; Schema: functions; Owner: -
--

CREATE FUNCTION "timestamp with time zone"(value text) RETURNS timestamp with time zone
    LANGUAGE plpgsql IMMUTABLE
    AS $$
BEGIN
    BEGIN
        RETURN value;
    EXCEPTION
        WHEN data_exception THEN
            RAISE WARNING '%', SQLERRM;
            RETURN NULL;
    END;
    RETURN new;
END;
$$;


--
-- PostgreSQL database dump complete
--

