Re: pg_recvlogical not accepting -I to specify start LSN position

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: pg_recvlogical not accepting -I to specify start LSN position
Дата
Msg-id 20140525170109.GC18867@alap3.anarazel.de
обсуждение исходный текст
Ответ на pg_recvlogical not accepting -I to specify start LSN position  (Michael Paquier <michael.paquier@gmail.com>)
Ответы Re: pg_recvlogical not accepting -I to specify start LSN position
Список pgsql-hackers
Hi,

On 2014-05-25 22:35:24 +0900, Michael Paquier wrote:
> As written in subject, pg_recvlogical does not work properly with
> option -I but it should:
> $ pg_recvlogical -I 0/0
> pg_recvlogical: invalid option -- I
> Try "pg_recvlogical --help" for more information.
> $ pg_recvlogical --help | grep "\-I"
>   -I, --startpos=PTR     where in an existing slot should the streaming start

Good catch. Apparently only the long argument version ever worked...

> Attached patch corrects that, reshuffling at the same time the option
> letters parsed with getopt_long in alphabetical order.

Hm. Not a big fan of this in isolation. In the attached patch I've
reordered the options to all be ordered alphabetically, but only inside
the section they are in --help.

What do you think?

Greetings,

Andres Freund

--
 Andres Freund                       http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services

Вложения

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

Предыдущее
От: Tomas Vondra
Дата:
Сообщение: PATCH: pgbench / int64 instead of int for xact count
Следующее
От: Andres Freund
Дата:
Сообщение: Re: PATCH: pgbench / int64 instead of int for xact count