Is there a better way to express that this should only happen when testing PostgreSQL?