Hi,
To get the database creation you must use the -s option with pg_dump.(Dump out only the schema, no data)
The parse error is probably due to a single quote somewhere in you textdata...
I use : pg_dump -D mydatabase > recover.sql