Re: search_path when restoring to new db

From: "SunWuKung" <Balazs(dot)Klein(at)t-online(dot)hu>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: search_path when restoring to new db
Date: 2006-12-12 08:18:56
Message-ID: 1165911536.223599.11510@80g2000cwy.googlegroups.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Ok, I understand this difference now.
Knowing that, what is the standard way to copy a single database to
another server?

- can I use pg_dumpall to dump a single db? - or
- I have to use pg_dump and there is a procedure to ensure that old and
new dbs are the same, like

1. create new db
2. check or create user
3. run pg_restore
4. do alter db

and is there a way to automate this? If there is could you point me
there?

If there isn't:
Do you think that automating the complete backup and restore of a
single database would be database specific or it could work with
different databases? Don't you think that this is something that would
be generally useful?

Thank you for the help.
Balázs

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Anton 2006-12-12 08:59:16 Re: Why DISTINCT ... DESC is slow?
Previous Message Richard Huxton 2006-12-12 08:13:40 Re: Why DISTINCT ... DESC is slow?