A PostGre functions with return parameter set of text. Nap required to have all needed data in CSV format.