Modified patch attached and applied. I made some style changes and had
some merge conflicts because wchar.c has changed since 8.1.
The change to libpq's PQdsplen() seems like a good one and I will
mention it in the release notes.
Oh, one more thing. The only user-visible change I saw in the
regression tests is that a SELECT * on a table where all the columns
have been dropped doesn't return a blank line like before. This seems
like a step forward.
Usage example:
test= SELECT '1\n2\n3', 'a\nb\nc';