diff --git a/pageserver/src/pgdatadir_mapping.rs b/pageserver/src/pgdatadir_mapping.rs index 998c199ba6..a54cf9f91b 100644 --- a/pageserver/src/pgdatadir_mapping.rs +++ b/pageserver/src/pgdatadir_mapping.rs @@ -887,7 +887,7 @@ impl<'a> DatadirModification<'a> { ctx: &RequestContext, ) -> Result<(), RelationError> { if rel.relnode == 0 { - return Err(RelationError::AlreadyExists); + return Err(RelationError::InvalidRelnode); } // It's possible that this is the first rel for this db in this // tablespace. Create the reldir entry for it if so.