If you can directly access the database you should be able to use pg_dump to export the data.
pg_dump