Question: pgadmin how to export database?
Answer: Just right click on a table and select "backup". The popup will show various options, including "Format", select "plain" and you get plain SQL. pgAdmin is just using pg_dump to create the dump, also when you want plain SQL.