Created
March 17, 2014 03:45
-
-
Save khacanh/9593627 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pg_restore --host localhost --port 5432 --username "postgres" --dbname "my_dev" --no-password --verbose "server.dump" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
exporting sql gzipped data as JSON with delimiter ','
COPY (select row_to_json(application_trackers) from application_trackers) TO PROGRAM 'gzip > ~/my_data.zip' DELIMITER ',';