Skip to content

Commit 596385b

Browse files
committed
pg_recvlogical message and code improvements.
Some error messages complained about --init and --stop being used whereas the --create and --drop are the correct verbs. Fix that. Also a XLogRecPtr was tested in a boolean fashion instead of being compared to InvalidXLogRecPtr. Backpatch to 9.4 where pg_recvlogical was introduced. Michael Paquier
1 parent d6ded36 commit 596385b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/bin/pg_basebackup/pg_recvlogical.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -814,15 +814,15 @@ main(int argc, char **argv)
814814

815815
if (do_drop_slot && (do_create_slot || do_start_slot))
816816
{
817-
fprintf(stderr, _("%s: cannot use --init or --start together with --stop\n"), progname);
817+
fprintf(stderr, _("%s: cannot use --create or --start together with --drop\n"), progname);
818818
fprintf(stderr, _("Try \"%s --help\" for more information.\n"),
819819
progname);
820820
exit(1);
821821
}
822822

823-
if (startpos && (do_create_slot || do_drop_slot))
823+
if (startpos != InvalidXLogRecPtr && (do_create_slot || do_drop_slot))
824824
{
825-
fprintf(stderr, _("%s: cannot use --init or --stop together with --startpos\n"), progname);
825+
fprintf(stderr, _("%s: cannot use --create or --drop together with --startpos\n"), progname);
826826
fprintf(stderr, _("Try \"%s --help\" for more information.\n"),
827827
progname);
828828
exit(1);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy