Re: PG equivalent of "mysqlhotcopy"?

Поиск
Список
Период
Сортировка
От Josh Kupershmidt
Тема Re: PG equivalent of "mysqlhotcopy"?
Дата
Msg-id 4ec1cf760907300725r7f6bf3ch6bbadad8e8b4226c@mail.gmail.com
обсуждение исходный текст
Ответ на PG equivalent of "mysqlhotcopy"?  (Phoenix Kiula <phoenix.kiula@gmail.com>)
Список pgsql-general
> I know about pg_dumpall, which creates a humongous SQL file, but is
> there something equivalent in the postgresql world, like a
> "pgsqlhotcopy" which copies data folders in a similar way as
> mysqlhotcopy?

If you're lucky enough to be using a filesystem which supports atomic
snapshotting of directories (LVM and ZFS, I believe), you could just take
a snapshot of your entire Postgres data directory. See e.g.
http://lethargy.org/~jesus/archives/92-PostgreSQL-warm-standby-on-ZFS-crack.html

Note that mysqlhotcopy essentially works by forcibly locking all tables while
the copy is going on -- for any moderately big and busy server, this is a
huge problem.

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Clients disconnect but query still runs
Следующее
От: Greg Stark
Дата:
Сообщение: Re: Clients disconnect but query still runs