How To Create Temp Table In Postgresql Procedure Vs Function