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
обсуждение исходный текст
Ответ на 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
Список pgsql-hackers
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