Cliff Nieuwenhuis <cliff(at)nieusite(dot)com> writes:
> ... this behavior looks like an error. My expectations are that a tab be
> sent as a tab, not a textual representation of a tab.
It *is* sent as a tab. The issue is what psql does with it when
pretty-printing the query result as an ASCII-art table.
regards, tom lane