Re: pg_dump --split patch

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pg_dump --split patch
Дата
Msg-id 3465.1293553592@sss.pgh.pa.us
обсуждение исходный текст
Ответ на pg_dump --split patch  (Joel Jacobson <joel@gluefinance.com>)
Ответы Re: pg_dump --split patch  (Joel Jacobson <joel@gluefinance.com>)
Список pgsql-hackers
Joel Jacobson <joel@gluefinance.com> writes:
> Dear fellow hackers,
> Problem: A normal diff of two slightly different schema dump files (pg_dump
> -s), will not produce a user-friendly diff, as you get all changes in the
> same file.

> Solution: I propose a new option to pg_dump, --split, which dumps each
> object to a separate file in a user friendly directory structure:

Um ... how does that solve the claimed problem exactly?

> [-f filename] : main dump file, imports each splitted part using \i
> [-f filename]-split/[desc]/[tag]/[oid].sql : dump of the oid

This particular choice seems remarkably *un* friendly, since two dumps
from different DBs will inevitably not share the same OIDs, making it
practically impossible to compare them even if they are logically
identical.  But even without the choice to use OIDs in the filenames
I'm unconvinced that file-per-object is a good idea in any way shape or
form.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: knngist - 0.8
Следующее
От: Guillaume Lelarge
Дата:
Сообщение: Re: pg_primary_conninfo