Slightly improve initdb --sync-only option's help message

Поиск
Список
Период
Сортировка
От Gurjeet Singh
Тема Slightly improve initdb --sync-only option's help message
Дата
Msg-id CABwTF4U6hbNNE1bv=LxQdJybmUdZ5NJQ9rKY9tN82NXM8QH+iQ@mail.gmail.com
обсуждение исходный текст
Ответы Re: Slightly improve initdb --sync-only option's help message
Список pgsql-hackers
When reading the output of `initdb --help` I could not clearly
understand what the purpose of the --sync-only option was, until I
read the documentation of initdb.

  -S, --sync-only           only sync data directory

Perhaps the confusion was caused by the fact that sync(hronization)
means different things in different contexts, and many of those
contexts apply to databases, and to data directories; time sync, data
sync, replica sync, etc.

I think it would be helpful if the help message was slightly more
descriptive. Some options:

Used in patch:
     only sync data directory; does not modify any data

To match the wording of --sync-only option:
    write contents of data directory to disk; helpful after --no-sync option

Clearly specify the system operation used for the option
    perform fsync on data directory; helpful after --no-sync option

Best regards,
--
Gurjeet Singh http://gurjeet.singh.im/

Вложения

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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: visibility map corruption
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: Refactor "mutually exclusive options" error reporting code in parse_subscription_options