Postgresql Function Set Variable In Mysql