pub fn replace(path: &Path, copy: &Path) -> Result<(), CatalogError>Expand description
Makes copy the catalog at path: it is synced, renamed over path,
and the directory synced. Every connection to either file must be
closed. Their WAL files must be empty, as a last close leaves them; one
still holding frames would sit beside the wrong file, so it is refused.