I have 2 dbs on two different servers.
How can I copy using psql all the missing rows from db1 table to db2 table ? If this is not possible.. How can I copy the entire table ?
This is not possible with psql directly using a single SQL statement because you cannot connect to two different servers at the same time.
The only way you can do it:
\copy command (if you have access to the server, you can also use the SQL statement COPY\copy or COPY depending on where the input file is located