I am trying to export a PostgreSQL database to GEOjson but first I have to export as json.
https://dba.stackexchange.com/questions/90482/export-postgres-table-as-json