Re: [NOVICE] LATIN2->UTF8 conversation with dblink

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Joe Conway <mail(at)joeconway(dot)com>
Cc: Ruzsinszky Attila <ruzsinszky(dot)attila(at)gmail(dot)com>, pgsql-novice(at)postgresql(dot)org, pgsql-hackers(at)postgresql(dot)org
Subject: Re: [NOVICE] LATIN2->UTF8 conversation with dblink
Date: 2009-02-03 15:22:19
Message-ID: 26489.1233674539@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-novice

Joe Conway <mail(at)joeconway(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Simon Riggs 2009-02-03 15:29:14 Re: Hot Standby (v9d)
Previous Message Robert Haas 2009-02-03 15:19:13 Re: Hot Standby (v9d)

Browse pgsql-novice by date

  From Date Subject
Next Message Ruzsinszky Attila 2009-02-03 18:52:38 Permanent dblink
Previous Message Joe Conway 2009-02-03 02:31:30 Re: [NOVICE] LATIN2->UTF8 conversation with dblink