diff --git a/pageserver/src/import_datadir.rs b/pageserver/src/import_datadir.rs index db7b0f2c80..998f178cd8 100644 --- a/pageserver/src/import_datadir.rs +++ b/pageserver/src/import_datadir.rs @@ -485,14 +485,16 @@ pub fn import_file( let bytes = read_all_bytes(reader)?; modification.put_twophase_file(xid, Bytes::copy_from_slice(&bytes[..]))?; info!("imported twophase file"); + } else if file_path.starts_with("pg_tblspc") { + // TODO Backups exported from neon won't have pg_tblspc, but we will need + // this to import arbitrary postgres databases. + bail!("Importing pg_tblspc is not implemented"); } else if file_path.starts_with("pg_wal") { panic!("found wal file in base section"); } else { info!("ignored"); } - // TODO: pg_tblspc ?? - Ok(None) }