Execute Dynamic Query In Postgresql Function Vs Procedure