Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

Re: copy db1 to db2



On Sep 25, 2006, at 9:49 AM, Bill Moran wrote:
In response to "Bobby Gontarski" <Gontarski(at)seznam(dot)cz>:
Basically I need to copy db1 to db2 which I create manually. How do I
do that, I tried pg_dump pg_restore but I get some errors with foreign
key restraint...

You can use create database with db1 as the template. See the docs for
details.

But if you're getting foreign key constraint errors, you probably have some other issue that you should figure out.

What version is this anyway?
--
Jim Nasby                                            jim(at)nasby(dot)net
EnterpriseDB      http://enterprisedb.com      512.569.9461 (cell)





Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group