(See #2366)
I connect via haproxy to multiple load-balanced postgresql, and I get that error if I call a function that returns a user defined type. I call ReloadTypes every time I call that function, but there shoud be a better way. I don't know, maybe the connection could have a NoTypesCache property.