Re: [PATCHES] client_encoding in dump file

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Pavel Stehule <stehule(at)kix(dot)fsv(dot)cvut(dot)cz>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [PATCHES] client_encoding in dump file
Date: 2004-02-12 03:06:55
Message-ID: 200402120306.i1C36tl02450@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Tom Lane wrote:
> Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> > Pavel Stehule wrote:
> >> I send my first patch for PostgreSQL - maybe ugly patch. This patch
> >> generate on top of dump file line with setting of current encoding. Its
> >> useful for languages like czech with more than one wide used encoding.
> >> We need informations about used encoding.
>
> > I found this patch intersting. How do we deal with restoring a database
> > with a different encoding from the one dumped. Does having SET at the
> > top help? (Also, we use diff -c.)
>
> Yes, the SET should help; it will result in character encoding
> translation to whatever the database encoding is. This has been
> discussed before, IIRC.
>
> I was planning to commit this patch (perhaps after cleanup, haven't
> looked at it yet) but it's not got to the top of the todo queue...

Thanks. I will just keep it in my mailbox until it is dealt with.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2004-02-12 03:12:15 Re: 7.4 - FK constraint performance
Previous Message Stephan Szabo 2004-02-12 01:06:36 Re: 7.4 - FK constraint performance

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2004-02-12 03:12:03 Re: psql prompts with invisible characters
Previous Message Tom Lane 2004-02-12 03:01:24 Re: psql prompts with invisible characters