Added line
CREATE LANGUAGE plpgsql;
after line 1483 for fix problem Krishagni having with vaildation - running the database script