Re: [GENERAL] RE: [HACKERS] error messages not only English
| От | Tom Lane |
|---|---|
| Тема | Re: [GENERAL] RE: [HACKERS] error messages not only English |
| Дата | |
| Msg-id | 11066.896212797@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: [GENERAL] RE: [HACKERS] error messages not only English (Peter T Mount <psqlhack@retep.org.uk>) |
| Ответы |
Re: [GENERAL] RE: [HACKERS] error messages not only English
|
| Список | pgsql-hackers |
Peter T Mount <psqlhack@retep.org.uk> writes:
> In libpq, this could be added to PQerrorMessage(). This could attempt to
> get the native language error message from the DB, defaulting to either an
> english one, or just the error code (it would be a bad problem in this
> case).
Um. libpq has its own error messages that it can generate --- the most
obvious ones being those about "failed to connect to postmaster"
and "lost connection to backend". How is it supposed to get a localized
equivalent message from the server in cases like that?
Bear in mind that libpq may be executing on a remote machine, so
"have it read the error message file directly" is not a usable answer.
regards, tom lane
В списке pgsql-hackers по дате отправления: