• Magnus Hagander's avatar
    Fix base backup streaming xlog from standby · 31d96581
    Magnus Hagander authored
    When backing up from a standby server, the backup process
    will not automatically switch xlog segment. So we must
    accept a partially transferred xlog file in this case, but
    rename it into position anyway.
    
    In passing, merge the two callbacks for segment end and
    stop stream into a single callback, since their implementations
    were close to identical, and rename this callback to
    reflect that it stops streaming rather than continues it.
    
    Patch by Magnus Hagander, review by Fujii Masao
    31d96581
pg_basebackup.c 34.2 KB