Re: pg_dumpall --exclude-database option

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: pg_dumpall --exclude-database option
Дата
Msg-id 20181105074223.GG1718@paquier.xyz
обсуждение исходный текст
Ответ на Re: pg_dumpall --exclude-database option  (Fabien COELHO <coelho@cri.ensmp.fr>)
Список pgsql-hackers
On Wed, Oct 31, 2018 at 05:44:26PM +0100, Fabien COELHO wrote:
> Patch v4 applies cleanly, compiles, doc generation ok, global & local tests
> ok.

+# also fails for -r and -t, but it seems pointless to add more tests
for those.
+command_fails_like(
+       [ 'pg_dumpall', '--exclude-database=foo', '--globals-only' ],
+       qr/\Qpg_dumpall: option --exclude-database cannot be used
together with -g\/--globals-only\E/,
+       'pg_dumpall: option --exclude-database cannot be used together
with -g/--globals-only');

Usually testing all combinations is preferred, as well as having one
error message for each pattern, which is also more consistent with all
the other sanity checks in pg_dumpall.c and such.
--
Michael

Вложения

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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: Strange failure in LWLock on skink in REL9_5_STABLE
Следующее
От: Masahiko Sawada
Дата:
Сообщение: Re: New vacuum option to do only freezing