Answer the question
In order to leave comments, you need to log in
How to make a limited (selective) dump in Postgres?
For example:
mysqldump -uUSER -pPASS --database DATABASENAME -w '1 limit 100' >FILENAME.sql
Answer the question
In order to leave comments, you need to log in
I found this solution on the Internet (didn't check it myself):
psql -h … -c 'copy (select… from where ...)
to stdout' | psql -h ... -c 'copy from stdin'
taken from archives.postgresql.org/pgsql-general/2011-09/msg00277.php
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question