Re: PG_RESTORE/DUMP Question

Поиск
Список
Период
Сортировка
Искать
От
Shridhar Daithankar
Тема
Re: PG_RESTORE/DUMP Question
Дата
Msg-id
3F9FC8BA.90406@myrealbox.com
Ответ на
Список
Дерево обсуждения
PG_RESTORE/DUMP Question Alex <alex@meerkatsoft.com>
Re: PG_RESTORE/DUMP Question Shridhar Daithankar <shridhar_daithankar@myrealbox.com>
Re: PG_RESTORE/DUMP Question Alex <alex@meerkatsoft.com>
Re: PG_RESTORE/DUMP Question Martijn van Oosterhout <kleptog@svana.org>
Re: PG_RESTORE/DUMP Question Ken Godee <ken@perfect-image.com>
Alex wrote:

> Hi,
> 
> I have a test system that is setup the same as a production system and 
> would like to frequently copy the database over.
> pg_dump takes a few hours and even sometimes hangs.
> 
> Are there any reasons not to simply just copy the entire data directory 
> over to the test system? I could not find any postings on the net 
> suggesting otherwise. Is there anything to pay attention too ?

Yes. just shutdown production postmaster. Copy the entire data directory over to 
test system.

Two system should be absolutely identical. Same architecture, preferrably same 
OS, same postgresql client and server version etc.

Or investigate some of the asynchronous replication systems. That would save you 
some time but will affect production performance a bit.

HTH

  Shridhar

В списке pgsql-general по дате отправления
От: Doug McNaught
Дата:
Сообщение: Re: PG_RESTORE/DUMP Question
От: Martijn van Oosterhout
Дата:
Сообщение: Re: Performace question
FAQ