This is postgresql db PL/SQL script.