• Heikki Linnakangas's avatar
    Don't choke on files that are removed while pg_rewind runs. · b36805f3
    Heikki Linnakangas authored
    If a file is removed from the source server, while pg_rewind is running, the
    invocation of pg_read_binary_file() will fail. Use the just-added missing_ok
    option to that function, to have it return NULL instead, and handle that
    gracefully. And similarly for pg_ls_dir and pg_stat_file.
    
    Reported by Fujii Masao, fix by Michael Paquier.
    b36805f3
libpq_fetch.c 12.4 KB