pg_dump --schema=masters oldDB > masters1.sql
cat masters1.sql | psql newDB
o
in un unico comando puoi farlo
pg_dump oldDB --schema masters | psql -h localhost newDB;
pg_dump --schema=masters oldDB > masters1.sql
cat masters1.sql | psql newDB
o
in un unico comando puoi farlo
pg_dump oldDB --schema masters | psql -h localhost newDB;