Database Migration
Use the SQL script format
pg_dump -U <username> -h <host> -p <port> -t <tablename> <databasename> -f dump.sqlpsql -U <username> -h <host> -p <port> -d <databasename> -f dump.sqlUse the custom format
pg_dump -U <username> -h <host> -p <port> -F c <databasename> -f dumppg_restore -U <username> -h <host> -p <port> -F c -d <databasename> dumppg_restore -U <username> -h <host> -p <port> -F c -C -d postgres dumpLast updated
Was this helpful?