It has been clarified that this usage of the word "shrink" occurs in a comment on a Stack Overflow post that starts with
Let's say you have a company running a lot of C/C++, and you want to start planning migration to new technologies so you don't end up like COBOL companies 15 years ago.
The original poster followed up with a comment explaining that this is a truly hypothetical situation:
The "Let's say you have a company" is clearly an hypothetical case, I don't talk about me like a tv show character would to his shrink :-)
The word "shrink" in this sentence does refer to a psychotherapist/psychiatrist/psychologist. . That meaning fits the sentence, and it is probably the most common meaning of "shrink" when the word is used as a noun referring to something/someone that can be talked to. "To reduce in size" is the definition for "shrink" as a verb.
The sentence appears to be assuming the existence of a familiar stereotype where in a conversation with a psychotherapist, a TV show character might present as hypothetical a problem that is actually real. I don't actually have much of a stereotype about that exact situation, but both "presenting as hypothetical a problem that is actually real" and "talking to a psychiatrist" do seem to me to be fairly stereotypical behaviors for TV characters. Maybe two common stereotypes about TV characters have been combined to form the less common stereotype that this sentence refers to.