Re: pg_dump -s -b

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pg_dump -s -b
Дата
Msg-id 24987.1479576007@sss.pgh.pa.us
обсуждение исходный текст
Ответ на pg_dump -s -b  (Stephen Frost <sfrost@snowman.net>)
Ответы Re: pg_dump -s -b
Список pgsql-hackers
Stephen Frost <sfrost@snowman.net> writes:
> To wit, our docs specifically say:
> ----
> Include large objects in the dump. This is the default behavior except
> when --schema, --table, or --schema-only is specified, so the -b switch
> is only useful to add large objects to selective dumps.
> ----

Clearly, this is an oversimplification.

> However, a 'pg_dump -s -b' won't include blobs, which appears to be due
> to the masking performed in _tocEntryRequired() whereby we strip the
> REQ_DATA out if we are in schema-only mode.
> Further, though perhaps less surprising, we don't include blobs when
> --section=post-data is set, and only the definition of the blob (but no
> data) when --section=pre-data is used.

IMO, blobs are data, so those behaviors are correct.  The docs should
be fixed to match the code.
        regards, tom lane



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

Предыдущее
От: Stephen Frost
Дата:
Сообщение: pg_dump -s -b
Следующее
От: Joshua Drake
Дата:
Сообщение: Re: Mail thread references in commits