Re: Add option --drop-cascade for pg_dump/restore

Поиск
Список
Период
Сортировка
От Wu Haotian
Тема Re: Add option --drop-cascade for pg_dump/restore
Дата
Msg-id CADHB_-CqWUk=LPyzOVB6qmTCmX9V6EZeUR7O5tBDP6au_nZWUg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Add option --drop-cascade for pg_dump/restore  (vignesh C <vignesh21@gmail.com>)
Ответы Re: Add option --drop-cascade for pg_dump/restore  (Greg Sabino Mullane <htamfids@gmail.com>)
Список pgsql-hackers
Hi,

I've updated the patch to remove unnecessary changes and added tests.

On Fri, Jul 16, 2021 at 9:09 PM vignesh C <vignesh21@gmail.com> wrote:
> pg_dump support plain, custom, tar and directory format, I think,
> cascade option will be added by pg_dump only for plain format and for
> the other format pg_restore will include the cascade option. Should we
> document this somewhere?

Yes, cascade option relies on `--clean` which only works for plain
format in pg_dump.
Maybe we can add checks like "option --clean requires plain text format"?
If so, should I start a new mail thread for this?

Вложения

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

Предыдущее
От: Masahiko Sawada
Дата:
Сообщение: Re: Small documentation improvement for ALTER SUBSCRIPTION
Следующее
От: Rahila Syed
Дата:
Сообщение: Re: Column Filtering in Logical Replication