Re: block-level incremental backup

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: block-level incremental backup
Дата
Msg-id 27124.1567522822@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: block-level incremental backup  (Ibrar Ahmed <ibrar.ahmad@gmail.com>)
Ответы Re: block-level incremental backup  (Ibrar Ahmed <ibrar.ahmad@gmail.com>)
Список pgsql-hackers
Ibrar Ahmed <ibrar.ahmad@gmail.com> writes:
> +1 using the library to tar.

Uh, *what* library?

pg_dump's pg_backup_tar.c is about 1300 lines, a very large fraction
of which is boilerplate for interfacing to pg_backup_archiver's APIs.
The stuff that actually knows specifically about tar looks to be maybe
a couple hundred lines, plus there's another couple hundred lines of
(rather duplicative?) code in src/port/tar.c.  None of it is rocket
science.

I can't believe that it'd be a good tradeoff to create a new external
dependency to replace that amount of code.  In case you haven't noticed,
our luck with depending on external libraries has been abysmal.

Possibly there's an argument for refactoring things so that there's
more stuff in tar.c and less elsewhere, but let's not go looking
for external code to depend on.

            regards, tom lane



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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: block-level incremental backup
Следующее
От: Thunder
Дата:
Сообщение: Got "FATAL: could not access status of transaction" in PG 11.2