Backup and restore single table in PostgreSQL
Back up a single table from the specific database
pg_dump -d [sourcedatabase] -t [tablename]-f [dbtablebackup.sql]
Example:
pg_dump -U postgres -d testdb -t test -f C:\testwork\tablebackup.sql
Password:
Restore a single table in the database:
psql -d testdb -f C:\testwork\tablebackup.sql