Postgresql Function Return Table Row And Column