Created
June 2, 2015 14:41
-
-
Save mrgcohen/b35d5bd305935c363406 to your computer and use it in GitHub Desktop.
dump tables from psql as csv
This file contains 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
psql -c "COPY tablename TO stdout DELIMITER ',' CSV HEADER" datasbasename -U username -h hostname -W > filename.csv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment