Re: Backup using GiT?

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Backup using GiT?
Дата
Msg-id 20080613201133.GC5070@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: Backup using GiT?  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Backup using GiT?  ("Ciprian Dorin Craciun" <ciprian.craciun@gmail.com>)
Список pgsql-general
Tom Lane wrote:
> "James B. Byrne" <byrnejb@harte-lyne.ca> writes:

> > GiT works by compressing deltas of the contents of successive versions of file
> > systems under repository control.  It treats binary objects as just another
> > object under control.  The question is, are successive (compressed) dumps of
> > an altered database sufficiently similar to make the deltas small enough to
> > warrant this approach?
>
> No.  If you compress it, you can be pretty certain that the output will
> be different from the first point of difference to the end of the file.
> You'd have to work on uncompressed output, which might cost more than
> you'd end up saving ...

The other problem is that since the tables are not dumped in any
consistent order, it's pretty unlikely that you'd get any similarity
between two dumps of the same table.  To get any benefit, you'd need to
get pg_dump to dump sorted tuples.

--
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: dblink() cursor error/issue (TopMemoryContext)
Следующее
От: "Kynn Jones"
Дата:
Сообщение: Advice for "hot-swapping" databases