[patch] pg_test_timing does not prompt illegal option

Поиск
Список
Период
Сортировка
От Zhang, Jie
Тема [patch] pg_test_timing does not prompt illegal option
Дата
Msg-id 1396E95157071C4EBBA51892C5368521017F2F2C72@G08CNEXMBPEKD02.g08.fujitsu.local
обсуждение исходный текст
Ответы Re: [patch] pg_test_timing does not prompt illegal option  (Fujii Masao <masao.fujii@gmail.com>)
Список pgsql-hackers
Hi all,

pg_test_timing accepts the following command-line options:
-d duration
--duration=duration

    Specifies the test duration, in seconds. Longer durations give slightly better accuracy, and are more likely to
discoverproblems with the system clock moving backwards. The default test duration is 3 seconds.
 
-V
--version

    Print the pg_test_timing version and exit.
-?
--help

    Show help about pg_test_timing command line arguments, and exit.

[https://www.postgresql.org/docs/11/pgtesttiming.html]

However, when I use the following command,  no error prompt. the command can run.
pg_test_timing --

I think "--" is a illegal option, errors should be prompted.

Here is a patch for prompt illegal option.

Best Regards!




Вложения

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

Предыдущее
От: Paul Guo
Дата:
Сообщение: standby recovery fails (tablespace related) (tentative patch and discussion)
Следующее
От: Amit Langote
Дата:
Сообщение: Re: hyrax vs. RelationBuildPartitionDesc