| От | Tom Lane |
|---|---|
| Тема | Re: canceling query |
| Дата | |
| Msg-id | 27717.1082402371@sss.pgh.pa.us обсуждение |
| Ответ на | Re: canceling query ("Magnus Hagander" <mha@sollentuna.net>) |
| Список | pgsql-hackers-win32 |
"Magnus Hagander" <mha@sollentuna.net> writes:
> I beleive the fix needs to be in backend/utils/elog.c, function
> useful_strerror(). Unless someone either tells me that's the wrong place
> or beats me to it, I'll try to get a patch done for this soonest.
Sounds reasonable. Better look also at errcode_for_socket_access() and
other places that check for particular errno values.
While you are at it you might want to make sure there aren't any other
unprotected strerror() calls in the backend. At one time we had a fair
number of places with code like
elog("barf: %s", strerror(errno));
and I'm not sure if all of them have gotten turned into %m or not.
regards, tom lane
В списке pgsql-hackers-win32 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера