Content-Length: 260636 | pFad | http://github.com/postgrespro/postgres/commit/acd75b2643579a26adfbfaa4918e60121ae2c26f

76 pg_upgrade: force timeline 1 in the new cluster · postgrespro/postgres@acd75b2 · GitHub
Skip to content

Commit acd75b2

Browse files
committed
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
1 parent 321db71 commit acd75b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contrib/pg_upgrade/pg_upgrade.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -512,8 +512,8 @@ copy_clog_xlog_xid(void)
512512

513513
/* now reset the wal archives in the new cluster */
514514
prep_status("Resetting WAL archives");
515-
exec_prog(true, SYSTEMQUOTE "\"%s/pg_resetxlog\" -l %u,%u,%u \"%s\" >> \"%s\" 2>&1" SYSTEMQUOTE,
516-
new_cluster.bindir, old_cluster.controldata.chkpnt_tli,
515+
exec_prog(true, SYSTEMQUOTE "\"%s/pg_resetxlog\" -l 1,%u,%u \"%s\" >> \"%s\" 2>&1" SYSTEMQUOTE,
516+
new_cluster.bindir,
517517
old_cluster.controldata.logid, old_cluster.controldata.nxtlogseg,
518518
new_cluster.pgdata,
519519
#ifndef WIN32

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/acd75b2643579a26adfbfaa4918e60121ae2c26f

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy