pg_dump -U postgres -t <old_table> <old_database> | psql -U postgres -d <new_database>.
pg_dump -U postgres -t <old_table> <old_database> | psql -U postgres -d <new_database>pg_dump -sSchema only.
Updated:
2026 Aug 19
pg_dump -U postgres -t <old_table> <old_database> | psql -U postgres -d <new_database>.
pg_dump -U postgres -t <old_table> <old_database> | psql -U postgres -d <new_database>pg_dump -sSchema only.