Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit596385b

Browse files
committed
pg_recvlogical message and code improvements.
Some error messages complained about --init and --stop being usedwhereas the --create and --drop are the correct verbs. Fix that.Also a XLogRecPtr was tested in a boolean fashion instead of beingcompared to InvalidXLogRecPtr.Backpatch to 9.4 where pg_recvlogical was introduced.Michael Paquier
1 parentd6ded36 commit596385b

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)

[8]ページ先頭

©2009-2025 Movatter.jp