Confusing long option in pg_receivexlog/basebackup/dumpall

Поиск
Список
Период
Сортировка
От Pavan Deolasee
Тема Confusing long option in pg_receivexlog/basebackup/dumpall
Дата
Msg-id CABOikdNf+LsmgRF5-bjUFmTJoVwfe5=+Qrtbq3h5t_QwA3Ac4w@mail.gmail.com
обсуждение исходный текст
Ответы Re: Confusing long option in pg_receivexlog/basebackup/dumpall
Список pgsql-hackers
Hi All,

While looking at the help message of pg_basebackup, I got a bit confused by it. It looks something like this:

Connection options:
  -d, --dbname=CONNSTR   connection string

So the long option says "--dbname" which is not really what its expecting. The same issue also applies to pg_receivexlog and pg_dumpall. I wonder if this is a well thought out user API or just an oversight when we chose to use "-d" to pass connection string to the command, In fact, I would have avoided using either -d or --dbname because they are used very frequently in other commands to mean something else.

Thanks,
Pavan

--
Pavan Deolasee
http://www.linkedin.com/in/pavandeolasee

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

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: Re: Confusing comment in xlog.c or am I missing something?
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: Re: Confusing long option in pg_receivexlog/basebackup/dumpall