Re: Client encoding conversion for binary data (was Re: GUC and postgresql.conf docs)

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Client encoding conversion for binary data (was Re: GUC and postgresql.conf docs)
Дата
Msg-id 9519.1053013730@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Client encoding conversion for binary data (was Re:  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:
> That same rule applied to character types would say that the "normal" text
> format is subject to character set conversion (of course), and any other
> text format (whatever that would be) would also be.  Any binary format for
> character types would not be subject to character set conversion.  But
> that does not say what would be in that binary format.  It could be the
> internal server encoding representation or mule internal code or the data
> preconverted to the client encoding outside the automatic mechanisms or
> anything else.

True.

> Unless someone can come up with a binary representation
> that would be genuinely useful, the simplest answer would be that
> character types don't have one and you have to use the text format.

You're prejudging the question at hand, which is whether or not access
to the server-encoding representation is useful.  I'm inclined to think
that it is, particularly for backup purposes (no need to worry about
lossage from character set conversions).  Of course one can set
client_encoding equal to server_encoding to get the same effect, but
that doesn't seem to be an argument that it's not useful.
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: SET CONSTRAINTS not schema-aware
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: SET CONSTRAINTS not schema-aware