San Diego’s housing market was ranked the fourth most expensive in the nation, trailing only Washington, D.C., Brooklyn, N.Y., and the Bay Area in California, according to a recent report from Emeryville-based ZipRealty.