Would anyone know how to dump the data from the view?
You should check COPY command in the manual: http://www.postgresql.org/docs/current/static/sql-copy.html to save all your data. But you have to use tables with copy, not views. Probably the solution will be to store all needed data in temporary table and then use COPY to output data to file.