Dreaming of Babylon: A Private Eye Novel 1942 is Richard Brautigan's eighth novel and was published in 1977.
It is a black comedy set in San Francisco in 1942.
The central character, C. Card, is no Sam Spade, but actually does do detective work of a sort, when he's not off dreaming of Babylon.
You can help Wikipedia by expanding it.See guidelines for writing about novels.
Further suggestions might be found on the article's talk page.