mirror of
https://github.com/postgres/postgres.git
synced 2026-04-23 15:19:08 -04:00
pg_upgrade: force timeline 1 in the new cluster
Previously, this prevented promoted standby servers from being upgraded because of a missing WAL history file. (Timeline 1 doesn't need a history file, and we don't copy WAL files anyway.) Report by Christian Echerer(?), Alexey Klyukin Backpatch through 9.0
This commit is contained in:
parent
2194aa92b7
commit
df161c94e7
1 changed files with 2 additions and 2 deletions
|
|
@ -470,8 +470,8 @@ copy_clog_xlog_xid(migratorContext *ctx)
|
|||
|
||||
/* now reset the wal archives in the new cluster */
|
||||
prep_status(ctx, "Resetting WAL archives");
|
||||
exec_prog(ctx, true, SYSTEMQUOTE "\"%s/pg_resetxlog\" -l %u,%u,%u \"%s\" >> \"%s\" 2>&1" SYSTEMQUOTE,
|
||||
ctx->new.bindir, ctx->old.controldata.chkpnt_tli,
|
||||
exec_prog(ctx, true, SYSTEMQUOTE "\"%s/pg_resetxlog\" -l 1,%u,%u \"%s\" >> \"%s\" 2>&1" SYSTEMQUOTE,
|
||||
ctx->new.bindir,
|
||||
ctx->old.controldata.logid, ctx->old.controldata.nxtlogseg,
|
||||
ctx->new.pgdata,
|
||||
#ifndef WIN32
|
||||
|
|
|
|||
Loading…
Reference in a new issue