Constraints on Spacetimes