Re: cleanup patches for incremental backup

Поиск
Список
Период
Сортировка
Искать
От
Robert Haas
Тема
Re: cleanup patches for incremental backup
Дата
Msg-id
CA+TgmoadPUdt8ZJ_Zem-T2_qZ5OTXVdxH6wGtnaV-TunN+LOHQ@mail.gmail.com
Ответ на
Список
Дерево обсуждения
cleanup patches for incremental backup Robert Haas <robertmhaas@gmail.com>
Re: cleanup patches for incremental backup Robert Haas <robertmhaas@gmail.com>
Re: cleanup patches for incremental backup Robert Haas <robertmhaas@gmail.com>
RE: cleanup patches for incremental backup "Shinoda, Noriyoshi (HPE Services Japan - FSIP)" <noriyoshi.shinoda@hpe.com>
Re: cleanup patches for incremental backup Robert Haas <robertmhaas@gmail.com>
Re: cleanup patches for incremental backup Alexander Lakhin <exclusion@gmail.com>
Re: cleanup patches for incremental backup Robert Haas <robertmhaas@gmail.com>
Re: cleanup patches for incremental backup Matthias van de Meent <boekewurm+postgres@gmail.com>
Re: cleanup patches for incremental backup Robert Haas <robertmhaas@gmail.com>
Re: cleanup patches for incremental backup Matthias van de Meent <boekewurm+postgres@gmail.com>
Re: cleanup patches for incremental backup Robert Haas <robertmhaas@gmail.com>
Re: cleanup patches for incremental backup Matthias van de Meent <boekewurm+postgres@gmail.com>
Re: cleanup patches for incremental backup Robert Haas <robertmhaas@gmail.com>
Re: cleanup patches for incremental backup Matthias van de Meent <boekewurm+postgres@gmail.com>
Re: cleanup patches for incremental backup Robert Haas <robertmhaas@gmail.com>
Re: cleanup patches for incremental backup Nathan Bossart <nathandbossart@gmail.com>
Re: cleanup patches for incremental backup Robert Haas <robertmhaas@gmail.com>
Re: cleanup patches for incremental backup Nathan Bossart <nathandbossart@gmail.com>
Re: cleanup patches for incremental backup Nathan Bossart <nathandbossart@gmail.com>
Re: cleanup patches for incremental backup Nathan Bossart <nathandbossart@gmail.com>
Re: cleanup patches for incremental backup Nathan Bossart <nathandbossart@gmail.com>
Re: cleanup patches for incremental backup Nathan Bossart <nathandbossart@gmail.com>
Re: cleanup patches for incremental backup Robert Haas <robertmhaas@gmail.com>
Re: cleanup patches for incremental backup Nathan Bossart <nathandbossart@gmail.com>
Re: cleanup patches for incremental backup Robert Haas <robertmhaas@gmail.com>
Re: cleanup patches for incremental backup Nathan Bossart <nathandbossart@gmail.com>
Re: cleanup patches for incremental backup Robert Haas <robertmhaas@gmail.com>
Re: cleanup patches for incremental backup Nathan Bossart <nathandbossart@gmail.com>
Re: cleanup patches for incremental backup Robert Haas <robertmhaas@gmail.com>
Re: cleanup patches for incremental backup Nathan Bossart <nathandbossart@gmail.com>
Re: cleanup patches for incremental backup Robert Haas <robertmhaas@gmail.com>
Re: cleanup patches for incremental backup Alexander Lakhin <exclusion@gmail.com>
Re: cleanup patches for incremental backup Alexander Lakhin <exclusion@gmail.com>
Re: cleanup patches for incremental backup Nathan Bossart <nathandbossart@gmail.com>
Re: cleanup patches for incremental backup Nathan Bossart <nathandbossart@gmail.com>
Re: cleanup patches for incremental backup Robert Haas <robertmhaas@gmail.com>
Re: cleanup patches for incremental backup Nathan Bossart <nathandbossart@gmail.com>
Re: cleanup patches for incremental backup Robert Haas <robertmhaas@gmail.com>
Re: cleanup patches for incremental backup Robert Haas <robertmhaas@gmail.com>
Re: cleanup patches for incremental backup Robert Haas <robertmhaas@gmail.com>
On Tue, Jan 16, 2024 at 3:22 PM Matthias van de Meent
 wrote:
> > One other thought is that the incremental backup only replaces
> > relation files with incremental files, and it never does anything
> > about FSM files. So the statement that it only contains data that was
> > potentially changed isn't quite correct. It might be better to phrase
> > it the other way around i.e. it is like a full backup, except that
> > some files can be replaced by incremental files which omit blocks to
> > which no WAL-logged changes have been made.
>
> How about the attached?

I like the direction.

+     A special base backup
+     that for some WAL-logged relations only contains the pages that were
+     modified since a previous backup, as opposed to the full relation data of
+     normal base backups. Like base backups, it is generated by the tool
+     .

Could we say "that for some files may contain only those pages that
were modified since a previous backup, as opposed to the full contents
of every file"? My thoughts are (1) there's no hard guarantee that an
incremental backup will replace even one file with an incremental
file, although in practice it is probably almost always going to
happen and (2) pg_combinebackup would actually be totally fine with
any file at all being sent incrementally; it's only that the server
isn't smart enough to figure out how to do this with e.g. SLRU data
right now.

+     To restore incremental backups the tool 
+     is used, which combines the incremental backups with a base backup and
+     WAL to restore a
+     database cluster to
+     a consistent state.

I wondered if this needed to be clearer that the chain of backups
could have length > 2. But on further reflection, I think it's fine,
unless you feel otherwise.

The rest LGTM.

-- 
Robert Haas
EDB: http://www.enterprisedb.com


В списке pgsql-hackers по дате отправления
От: David Rowley
Дата:
От: Przemysław Sztoch
Дата:
Сообщение: Re: UUID v7
FAQ