Skip to content

Instantly share code, notes, and snippets.

@lbalceda
Created December 9, 2015 23:09
Show Gist options
  • Save lbalceda/782e5fcd2beec296975d to your computer and use it in GitHub Desktop.
Save lbalceda/782e5fcd2beec296975d to your computer and use it in GitHub Desktop.
dump sql table as insert statements
pg_dump --table=TABLE_NAME_HERE --data-only --column-inserts DATABASE_NAME_HERE > output.sql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment