[英]how to copy data from one database to another database in postgresql?
我试图将表从一个postgresql8.4复制到另一个postgresql8.4,我不知道我该怎么做?
Can't you just take pg_dump
from one and import in another? 难道你不能从一个pg_dump
获取pg_dump
并在另一个中导入吗? Seems quite trivial. 看起来很琐碎。
Take a look at this: http://www.postgresql.org/docs/8.4/static/backup-dump.html 看看这个: http : //www.postgresql.org/docs/8.4/static/backup-dump.html
if you have postgres contrib installed you need to type this once is psql: 如果你安装了postgres contrib,你需要输入一次是psql:
CREATE EXTENSION dblink; CREATE EXTENSION dblink;
You should be able to so it using a database link: 你应该能够使用数据库链接:
http://www.postgresql.org/docs/8.4/static/contrib-dblink.html http://www.postgresql.org/docs/8.4/static/contrib-dblink.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.