Copy data between two tables in PostgreSQL using dblink.sql
问题 I am using PostgreSQL 9.1. I need to transfer required columns from one table of one database into another table of another database, but not schema. I found that dblink.sql file has to be there in share/contrib . But my contrib folder is empty. Where can I download the dblink.sql file and can execute my query? When I execute the query now it shows an error message: cross database reference is not possible ... Can anyone help me how to transfer the data between two databases? 回答1: After you