Re: [PATCH] Incremental backup: add backup profile to base backup

Поиск
Список
Период
Сортировка
Искать
От
Alvaro Herrera
Тема
Re: [PATCH] Incremental backup: add backup profile to base backup
Дата
Msg-id
20140818163337.GA6817@eldon.alvh.no-ip.org
Ответ на
Список
Дерево обсуждения
[PATCH] Incremental backup: add backup profile to base backup Marco Nenciarini <marco.nenciarini@2ndquadrant.it>
Re: [PATCH] Incremental backup: add backup profile to base backup Alvaro Herrera <alvherre@2ndquadrant.com>
Re: [PATCH] Incremental backup: add backup profile to base backup Heikki Linnakangas <hlinnakangas@vmware.com>
Re: [PATCH] Incremental backup: add backup profile to base backup Alvaro Herrera <alvherre@2ndquadrant.com>
Re: [PATCH] Incremental backup: add backup profile to base backup Heikki Linnakangas <hlinnakangas@vmware.com>
Re: [PATCH] Incremental backup: add backup profile to base backup Robert Haas <robertmhaas@gmail.com>
Re: [PATCH] Incremental backup: add backup profile to base backup Bruce Momjian <bruce@momjian.us>
Re: [PATCH] Incremental backup: add backup profile to base backup Claudio Freire <klaussfreire@gmail.com>
Re: [PATCH] Incremental backup: add backup profile to base backup Robert Haas <robertmhaas@gmail.com>
Re: [PATCH] Incremental backup: add backup profile to base backup Bruce Momjian <bruce@momjian.us>
Re: [PATCH] Incremental backup: add backup profile to base backup Amit Kapila <amit.kapila16@gmail.com>
Re: [PATCH] Incremental backup: add backup profile to base backup Arthur Silva <arthurprs@gmail.com>
Re: [PATCH] Incremental backup: add backup profile to base backup Heikki Linnakangas <hlinnakangas@vmware.com>
Re: [PATCH] Incremental backup: add backup profile to base backup Heikki Linnakangas <hlinnakangas@vmware.com>
Heikki Linnakangas wrote:
> On 08/18/2014 08:05 AM, Alvaro Herrera wrote:

> >We already have the FNV checksum implementation in the backend -- can't
> >we use that one for this and avoid messing with MD5?
> >
> >(I don't think we're looking for a cryptographic hash here.  Am I wrong?)
> 
> Hmm. Any user that can update a table can craft such an update that
> its checksum matches an older backup. That may seem like an onerous
> task; to correctly calculate the checksum of a file in a previous,
> you need to know the LSNs and the exact data, including deleted
> data, on every block in the table, and then construct a suitable
> INSERT or UPDATE that modifies the table such that you get a
> collision. But for some tables it could be trivial; you might know
> that a table was bulk-loaded with a particular LSN and there are no
> dead tuples.

What would anybody obtain by doing that?  The only benefit is that the
file you so carefully crafted is not included in the next incremental
backup.  How is this of any interest?

-- 
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services


В списке pgsql-hackers по дате отправления
От: Andres Freund
Дата:
Сообщение: Re: pg_shmem_allocations view
От: Tom Lane
Дата:
Сообщение: Re: pg_shmem_allocations view
FAQ