Re: search_path when restoring to new db

Поиск
Список
Период
Сортировка
От SunWuKung
Тема Re: search_path when restoring to new db
Дата
Msg-id 1165911536.223599.11510@80g2000cwy.googlegroups.com
обсуждение исходный текст
Ответ на Re: search_path when restoring to new db  ("Brandon Aiken" <BAiken@winemantech.com>)
Ответы Re: search_path when restoring to new db  ("Brandon Aiken" <BAiken@winemantech.com>)
Список 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


В списке pgsql-general по дате отправления:

Предыдущее
От: Richard Huxton
Дата:
Сообщение: Re: Why DISTINCT ... DESC is slow?
Следующее
От: Anton
Дата:
Сообщение: Re: Why DISTINCT ... DESC is slow?