I use PostgreSQL 9.4.1
My query:
copy(select * from city) to \'C:\\\\temp\\\\city.csv\' copy(select * from city) to E\'C:\\\\temp\\\\city.csv\'
I am using pgAdmin v1.5 . The first query is
select table_name from information_schema.tables where table_catalog = 'ofbiz' order by table_name
Then I press button download, pgAdmin will return a csv file, is result set of first query.