Like a previous poster, I too thought of Dixon of Dock Green (which I remember from about 1956 - it was on every Saturday night) as I first watched "The Last Detective", which I just recently discovered. However, as I watched more of the series I began to realize that it's really quite different.
Firstly, Dixon was respected by his colleagues and bosses, whereas Dangerous is definitely not. Secondly, he lived with his daughter's family (his son-in-law was a detective in the same police station) and had a comfortable home life with people who loved him...again, totally different from poor Dangerous. Thirdly, Dixon refused promotion because he just wanted to be "an ordinary copper". I'm sure Dangerous would be delighted to be promoted, but because no one really realizes what a good job he does, it will never happen!
"Dixon of Dock Green" was made and broadcast on the BBC in the 50s up to the 70s, and certainly the ones I remember (50s and early 60s) featured cozy stories with happy endings and nothing really nasty. There were sad things, of course (like when the young policeman was killed) but mostly everything was all right in the end. "The Last Detective", while not wallowing in the nasty stuff, could certainly not be described as "cozy". Dangerous (wonderfully played by Peter Davison, a favourite since his Tristan days) is a very nice man, if a bit too ready to take all the abuse his colleagues heap on him. I would like to see him stand up for himself a bit more!
I am enjoying "The Last Detective" every bit as much as I enjoyed "Dixon of Dock Green" all those years ago and can't wait to see Series 4 on DVD.