Postgresql if else. Create function postgresql. returns table postgresql. postgresql functions. postgresql function return table.