Re: pg_stats queries versus per-database encodings

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pg_stats queries versus per-database encodings
Дата
Msg-id 25766.1231092066@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: pg_stats queries versus per-database encodings  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
Ответы Re: pg_stats queries versus per-database encodings  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-hackers
Heikki Linnakangas <heikki.linnakangas@enterprisedb.com> writes:
> Tom Lane wrote:
>> We could attack this by including source database's encoding in the
>> shared-memory entries, and performing a conversion on the fly when
>> reading out the data.  However, what happens if the conversion fails?

> The most useful behavior would be to replace the untranslatable 
> characters with "?". I'm not sure how invasive the changes to the 
> conversion functions would be to support that.

I agree, but it looks like fairly massive changes would be needed,
starting with redefining the API for conversion functions to add
an error/noerror boolean.  Not something that I care to tackle
right now.  Maybe we shall just have to live with it for another
release.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: New patch for Column-level privileges
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: parallel restore