Re: [HACKERS] LATIN2->UTF8 conversation with dblink - Mailing list pgsql-novice

From Tom Lane
Subject Re: [HACKERS] LATIN2->UTF8 conversation with dblink
Date
Msg-id 26489.1233674539@sss.pgh.pa.us
Whole thread Raw
In response to Re: LATIN2->UTF8 conversation with dblink  (Joe Conway <mail@joeconway.com>)
List pgsql-novice
Joe Conway <mail@joeconway.com> writes:
> Tom Lane wrote:
>> Hmm.  You can presumably fix this by setting client_encoding in the
>> dblink connection to match the encoding in use in the database it's
>> called in.  But I wonder why dblink doesn't just do that for you
>> automatically.

> But if you think automatically setting client encoding is appropriate, I
> will make the change. Would it be classified as a bug (and therefore
> something to backpatch) or a new feature?

You could make an argument either way; but given that we're not seeing
vast demand in this thread, I think I'd vote for not changing behavior
in the back branches.  It'd be good to get it into 8.4 though.

            regards, tom lane

pgsql-novice by date:

Previous
From: Joe Conway
Date:
Subject: Re: LATIN2->UTF8 conversation with dblink
Next
From: Ruzsinszky Attila
Date:
Subject: Permanent dblink