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 612e928 commit 884dd52Copy full SHA for 884dd52
src/pg_probackup.c
@@ -345,6 +345,16 @@ main(int argc, char *argv[])
345
#endif
346
else if (strcmp(argv[1], "agent") == 0)
347
{
348
+ /* 'No forward compatibility' sanity:
349
+ * /old/binary -> ssh execute -> /newer/binary agent version_num
350
+ * If we are executed as an agent for older binary, then exit with error
351
+ */
352
+ if (argc > 2)
353
+ {
354
+ elog(ERROR, "Version mismatch, pg_probackup binary with version '%s' "
355
+ "is launched as an agent for pg_probackup binary with version '%s'",
356
+ PROGRAM_VERSION, argv[2]);
357
+ }
358
fio_communicate(STDIN_FILENO, STDOUT_FILENO);
359
return 0;
360
}
0 commit comments