0

Just as the title states, I have a table that has well over 25 million records and I need all those records. it will only grow over time, so I need to export this one table from a psql database and import it into another psql database which is used for development.

Ideas?

I know you can dump a whole database, but can you dump a table? (sorry if thats a dumb question)

1

1 Answer 1

0

You can use:

$ pg_dump -d db -t big_table > big_table.sql

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.