I have two servers on PostgreSQL 8.4:
server1:5432
server2:5432
Now I want to copy the table from server1 and put it in the database on server2.
Can it be done?
UPDATE
I try to make @Valery Viktorovsky answer:
pg_dump --server1:5432 --encoding=utf8 --no-owner --username=postgres --123456 np_point > D:\np_point.sql
psql --server2:5432 --username=postgres mrsk -f D:\np_point.sql
and get the error:
ERROR: syntax error at or near "pg_dump"
LINE 1: pg_dump --server1:5432 --encoding=utf8 --no-owner --use...
source
share