|
6 | 6 | * A timeline history file lists the timeline changes of the timeline, in |
7 | 7 | * a simple text format. They are archived along with the WAL segments. |
8 | 8 | * |
9 | | - * The files are named like "<WAL segment>.history". For example, if the |
10 | | - * database starts up and switches to timeline 5, while processing WAL |
11 | | - * segment 000000030000002A00000006 (the old timeline was 3), the timeline |
12 | | - * history file would be called "000000050000002A00000006.history". |
| 9 | + * The files are named like "<tli>.history". For example, if the database |
| 10 | + * starts up and switches to timeline 5, the timeline history file would be |
| 11 | + * called "00000005.history". |
13 | 12 | * |
14 | 13 | * Each line in the file represents a timeline switch: |
15 | 14 | * |
@@ -376,4 +375,8 @@ writeTimeLineHistory(TimeLineID newTLI, TimeLineID parentTLI, |
376 | 375 | errmsg("could not rename file \"%s\" to \"%s\": %m", |
377 | 376 | tmppath,path))); |
378 | 377 | #endif |
| 378 | + |
| 379 | +/* The history file can be archived immediately. */ |
| 380 | +TLHistoryFileName(histfname,newTLI); |
| 381 | +XLogArchiveNotify(histfname); |
379 | 382 | } |