Re: handling unconvertible error messages

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: handling unconvertible error messages
Дата
Msg-id 31715.1470318130@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: handling unconvertible error messages  (Victor Wagner <vitus@wagner.pp.ru>)
Ответы Re: handling unconvertible error messages  (Victor Wagner <vitus@wagner.pp.ru>)
Re: handling unconvertible error messages  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
Список pgsql-hackers
Victor Wagner <vitus@wagner.pp.ru> writes:
> If error occurs during processing of StartMessage protocol message,
> i.e. client request connection to unexisting database,
> ErrorResponse would contain message in the server default locale,
> despite of client encoding being specified in the StartMessage.

Yeah.  I'm inclined to think that we should reset the message locale
to C as soon as we've forked away from the postmaster, and leave it
that way until we've absorbed settings from the startup packet.
Sending messages of this sort in English isn't great, but it's better
than sending completely-unreadable ones.  Or is that just my
English-centricity showing?
        regards, tom lane



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

Предыдущее
От: Amit Kapila
Дата:
Сообщение: Re: Surprising behaviour of \set AUTOCOMMIT ON
Следующее
От: Tom Lane
Дата:
Сообщение: Re: New version numbering practices