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

Commit0d4d7d6

Browse files
committed
Don't allow both --source-server and --source-target args to pg_rewind.
They are supposed to be mutually exclusive, but there was no check forthat.Michael BanckDiscussion: <20161007103414.GD12247@nighthawk.caipicrew.dd-dns.de>
1 parent275bf98 commit0d4d7d6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

‎src/bin/pg_rewind/pg_rewind.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,13 @@ main(int argc, char **argv)
162162
exit(1);
163163
}
164164

165+
if (datadir_source!=NULL&&connstr_source!=NULL)
166+
{
167+
fprintf(stderr,_("%s: only one of --source-pgdata or --source-server can be specified\n"),progname);
168+
fprintf(stderr,_("Try \"%s --help\" for more information.\n"),progname);
169+
exit(1);
170+
}
171+
165172
if (datadir_target==NULL)
166173
{
167174
fprintf(stderr,_("%s: no target data directory specified (--target-pgdata)\n"),progname);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp