如何将数据从一个数据库复制到postgresql中的另一个数据库?

问题描述:

我想从一个postgresql8.4复制表到另一个postgresql8.4,我不知道我该怎么做?如何将数据从一个数据库复制到postgresql中的另一个数据库?

不能你只需要在一个又一个和进口pg_dump?看起来很琐碎。
看看这个: http://www.postgresql.org/docs/8.4/static/backup-dump.html

+0

我已经解决了问题,谢谢。 – sda 2011-05-16 11:33:49

你应该能够所以它使用一个数据库链接:

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

+0

你可以添加一些答案吗?我得到“函数dblink ...不存在”..任何想法如何解决这个问题? – baash05 2013-08-19 06:22:37

如果你已经安装的Postgres的contrib你需要键入一次,这是psql的:

创建扩展DBLINK;