• Magnus Hagander's avatar
    Enumerate available tablespaces after starting the backup · 3866ff61
    Magnus Hagander authored
    This closes a race condition where if a tablespace was created
    after the enumeration happened but before the do_pg_start_backup()
    was called, the backup would be incomplete. Now that it's done
    while we are in backup mode, WAL replay will recreate it during
    restore.
    
    Noted by Heikki.
    3866ff61
basebackup.c 14.5 KB