We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 275bf98 commit 0d4d7d6Copy full SHA for 0d4d7d6
src/bin/pg_rewind/pg_rewind.c
@@ -162,6 +162,13 @@ main(int argc, char **argv)
162
exit(1);
163
}
164
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
+
172
if (datadir_target == NULL)
173
{
174
fprintf(stderr, _("%s: no target data directory specified (--target-pgdata)\n"), progname);
0 commit comments