postgres provider: fix detection of character fields (related to #8481)