Andrew - Supernews <andrew+nonews(at)supernews(dot)com> writes:
> Thinking about this made me realize that there's another, ahem, elephant
> in the room here: convert().
> By definition convert() returns text strings which are not valid in the
> server encoding. How can this be addressed?
Remove convert(). Or at least redefine it as dealing in bytea not text.
regards, tom lane