Created
February 2, 2016 19:39
-
-
Save landon9720/095f9b9cda0cd009ba71 to your computer and use it in GitHub Desktop.
copy compressed csv file from s3 to psql
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
aws s3 cp s3://your_bucket/your_key - | gzcat | pv | psql your_db -c "copy your_table from stdin delimiter ',' csv;" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment