Incorrect log message and checks in pgrecvlogical

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Incorrect log message and checks in pgrecvlogical
Дата
Msg-id CAB7nPqTNLoFqEPCJYN7=Vo0D5PhSBrFWcNUnYywJPh-gojf54Q@mail.gmail.com
обсуждение исходный текст
Ответы Re: Incorrect log message and checks in pgrecvlogical
Список pgsql-hackers
Hi,

While looking at pg_recvlogical code, I noticed that a couple of error
messages are incorrect when invoking some combinations of --create,
--start or --drop.

For example, here --init should be --create, --stop should be --drop:
$ pg_recvlogical --create --drop --slot foo
pg_recvlogical: cannot use --init or --start together with --stop
Try "pg_recvlogical --help" for more information.

Also, when checking the combination startpos && (create || drop), I
think that we should check that startpos is InvalidXLogRecPtr.

The patch attached fixes all those things. It should be back-patched to 9.4.
Regards,
--
Michael

Вложения

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

Предыдущее
От: Amit Khandekar
Дата:
Сообщение: Re: delta relations in AFTER triggers
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: pg_receivexlog add synchronous mode