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

Commit510c947

Browse files
committed
compare parent backup version with current binary version while searching for valid ancestor
1 parent42a4dbc commit510c947

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

‎src/backup.c‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,12 @@ do_backup_instance(PGconn *backup_conn, PGNodeInfo *nodeInfo, bool no_sync)
218218

219219
if (prev_backup)
220220
{
221+
if (parse_program_version(prev_backup->program_version)>parse_program_version(PROGRAM_VERSION))
222+
elog(ERROR,"pg_probackup binary version is %s, but backup %s version is %s. "
223+
"pg_probackup do not guarantee to be forward compatible. "
224+
"Please upgrade pg_probackup binary.",
225+
PROGRAM_VERSION,base36enc(prev_backup->start_time),prev_backup->program_version);
226+
221227
charprev_backup_filelist_path[MAXPGPATH];
222228

223229
elog(INFO,"Parent backup: %s",base36enc(prev_backup->start_time));

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp