Green’s Dictionary of Slang

blue pig n.2

[colour of the uniform + pig n. (2a)]

[1970s] a police officer.