Question: how to copy data from one database to another in postgresql?
Answer: Use pg_dump to dump table data, and then restore it with psql. It will copy the mentioned table of source Database into same named table of target database, if you already have existing schema. The problem with this method is that the name of the fields and their types of the table you want to copy must be written.