pg_basebackup and error messages dependent on the order of the arguments

Поиск
Список
Период
Сортировка
Искать
От
Daniel Westermann (DWE)
Тема
pg_basebackup and error messages dependent on the order of the arguments
Дата
Msg-id
GV0P278MB0419B8F0577DDAE48AF0CB5AD2762@GV0P278MB0419.CHEP278.PROD.OUTLOOK.COM
Список
Дерево обсуждения
pg_basebackup and error messages dependent on the order of the arguments "Daniel Westermann (DWE)" <daniel.westermann@dbi-services.com>
Re: pg_basebackup and error messages dependent on the order of the arguments Tom Lane <tgl@sss.pgh.pa.us>
Re: pg_basebackup and error messages dependent on the order of the arguments Tom Lane <tgl@sss.pgh.pa.us>
Re: pg_basebackup and error messages dependent on the order of the arguments "Daniel Westermann (DWE)" <daniel.westermann@dbi-services.com>
Re: pg_basebackup and error messages dependent on the order of the arguments Tom Lane <tgl@sss.pgh.pa.us>
Re: pg_basebackup and error messages dependent on the order of the arguments "Daniel Westermann (DWE)" <daniel.westermann@dbi-services.com>
Re: pg_basebackup and error messages dependent on the order of the arguments Robert Haas <robertmhaas@gmail.com>
Re: pg_basebackup and error messages dependent on the order of the arguments Tom Lane <tgl@sss.pgh.pa.us>
Re: pg_basebackup and error messages dependent on the order of the arguments Fujii Masao <masao.fujii@oss.nttdata.com>
Hi,

shouldn't this give the same error message?

$ pg_basebackup --checkpoint=fast --format=t --compress --pgdata=/var/tmp/dummy
pg_basebackup: error: must specify output directory or backup target
pg_basebackup: hint: Try "pg_basebackup --help" for more information.

$ pg_basebackup --pgdata=/var/tmp/dummy  --checkpoint=fast --format=t --compress
pg_basebackup: option '--compress' requires an argument
pg_basebackup: hint: Try "pg_basebackup --help" for more information.

I don't see why the first case gives not the same message as the second, especially as the "output directory" is specified.

Tested on v17 and devel, but I guess it was always like this.

Regards
Daniel

В списке pgsql-hackers по дате отправления
От: Tatsuo Ishii
Дата:
Сообщение: Re: Doc: typo in config.sgml
От: Andrew Dunstan
Дата:
Сообщение: Re: msys inet_pton strangeness
FAQ