I have two string columns a and b in a table foo.
a
b
foo
select a, b from foo returns values a and b<
select a, b from foo
b<
The problem was in nulls in the values; then the concatenation does not work with nulls. The solution is as follows:
SELECT coalesce(a, '') || coalesce(b, '') FROM foo;