How to copy data from one database to another database in postgresql?

I am trying to copy tables from one postgresql8.4 to another postgresql8.4, and I'm not sure how to do this?

+4
source share
3 answers

Can't you just take pg_dump from one and import into another? Seems pretty trivial.
Take a look at this: http://www.postgresql.org/docs/8.4/static/backup-dump.html

+3
source

You should be able to use the database link like this:

http://www.postgresql.org/docs/8.4/static/contrib-dblink.html

0
source

If you have postgres contrib installed, you need to enter it once: psql:

CREATE EXTENSION dblink;

0
source

All Articles