Hi all, 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 Attached patch corrects that, reshuffling at the same time the option letters parsed with getopt_long in alphabetical order.
Regards, -- Michael
diff --git a/src/bin/pg_basebackup/pg_recvlogical.c b/src/bin/pg_basebackup/pg_recvlogical.c index 651cc40..33678d9 100644 --- a/src/bin/pg_basebackup/pg_recvlogical.c +++ b/src/bin/pg_basebackup/pg_recvlogical.c @@ -647,7 +647,7 @@ main(int argc, char **argv) } } - while ((c = getopt_long(argc, argv, "f:F:nvd:h:o:p:U:wWP:s:S:", + while ((c = getopt_long(argc, argv, "d:f:F:h:I:no:p:P:s:S:U:vwW", long_options, &option_index)) != -1) { switch (c)
-- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers