简体   繁体   English

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

[英]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.

相关问题 PostgreSQL:如何将数据从一个数据库表复制到另一个数据库 - PostgreSQL: How to copy data from one database table to another database 如何将数据从一个数据库表复制到另一数据库表? - How to copy data from one database table to another database table? Django:将数据从一个数据库复制到另一个数据库 - Django: copy data from one database to another 如何将数据从一个数据库复制到另一个数据库? - How copy data from one database to another on different server? 如何在 Google Cloud 中将数据从一个数据库复制到另一个数据库 - How to copy data from one database to another in Google Cloud 如何将更改从一个数据库复制到另一个数据库 - How to copy changes from one database to another 如何将数据库从一台计算机复制到另一台计算机? - How to copy a database from one computer to another? 将数据从一个数据库中的表复制到另一个数据库 - Copy Data from a table in one Database to another database PHP SQL:如何将数据从一个html表单保存到多个数据库,或者如何自动将数据从一个数据库复制到另一个数据库 - PHP SQL : How to save data to multiple database from one html form OR how to copy data from one database to another database automatically 如何在SQL Server中将包含所有数据的单个视图从一个数据库复制到另一个数据库? - How to copy a single view with all the data on it in sql server from one database to another database?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM