Postgresql 11 Procedure Vs Function