Re: Server-side support of all encodings - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Server-side support of all encodings
Date
Msg-id 29920.1176650088@sss.pgh.pa.us
Whole thread Raw
In response to Re: Server-side support of all encodings  (Tatsuo Ishii <ishii@postgresql.org>)
List pgsql-hackers
Tatsuo Ishii <ishii@postgresql.org> writes:
> BTW, do we have to modify pg_dump or pg_restore so that it can
> automatically adjust JOHAB to UTF8 (it's the only safe encoding
> compatible with JOHAB)? I'm not sure it's worth the trouble. Maybe
> documenting in the release note is enough?

Do we actually need to do anything?  Dumps taken in client_encoding
JOHAB could exist regardless of the source server_encoding --- the
same is true of other client-only encodings.  Such dumps should load
fine into a UTF8 server_encoding database, as long as we have the right
conversion available.

I can imagine someone wanting to take a dump in a client-only encoding
for other reasons (export of the data to somewhere else, say) so I don't
think pg_dump should try to prevent it.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: Replacement of readline by libedit in PostgreSQL 8.1.x
Next
From: Peter Eisentraut
Date:
Subject: Re: Makefile patch to make gcov work on Postgres contrib modules