-- Allow PG/pgSQL as programming lang
DROP FUNCTION plpgsql_call_handler ();
CREATE FUNCTION plpgsql_call_handler () RETURNS OPAQUE AS
        '/usr/lib/pgsql/plpgsql.so' LANGUAGE 'C';
DROP PROCEDURAL LANGUAGE 'PLpgSQL';
CREATE TRUSTED PROCEDURAL LANGUAGE 'PLpgSQL'
        HANDLER plpgsql_call_handler
        LANCOMPILER 'PL/pgSQL';
