Re: prevent encoding conversion recursive error
| От | Tom Lane |
|---|---|
| Тема | Re: prevent encoding conversion recursive error |
| Дата | |
| Msg-id | 15716.1123166784@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | prevent encoding conversion recursive error ("Qingqing Zhou" <zhouqq@cs.toronto.edu>) |
| Список | pgsql-patches |
"Qingqing Zhou" <zhouqq@cs.toronto.edu> writes: > As this thread reports (some sever messages are in Chinese): > http://archives.postgresql.org/pgsql-bugs/2005-07/msg00247.php > a SQL grammar error could crash the error stack. Hmm, I thought we had fixed that years ago. > To fix this, we just change errmsg() to errmsg_internal() to avoid > tranlation which could stop the recursion at step 2. This is a really ugly solution ... and I don't think it solves the general problem anyway, since this isn't the only possible error message. I don't seem to have gotten the original problem report, and the archive page is pretty useless because all the non-ASCII characters have gotten changed to "?". Could you post a self-contained example case? Might be best to wrap it as a compressed attachment so it doesn't get munged in transmission. regards, tom lane
В списке pgsql-patches по дате отправления: