Re: Incorrect errno used with %m for backend code
Вложения
В списке pgsql-hackers по дате отправления:
| От | Michael Paquier |
|---|---|
| Тема | Re: Incorrect errno used with %m for backend code |
| Дата | |
| Msg-id | 20180624122350.GA1146@paquier.xyz обсуждение исходный текст |
| Ответ на | Re: Incorrect errno used with %m for backend code (Ashutosh Sharma <ashu.coek88@gmail.com>) |
| Ответы |
Re: Incorrect errno used with %m for backend code
|
| Список | pgsql-hackers |
On Sun, Jun 24, 2018 at 09:22:01AM +0530, Ashutosh Sharma wrote: > Okay, I too had a quick look into the source code to see if there are > still some places where we could have missed to set an errno to ENOSPC > in case of write system call failure but, couldn't find any such place > in the code. The v2 version of patch looks good to me. Thanks for the review. I'll try to wrap that tomorrow with proper patches for back-branches as things diverge a bit here and there. > So, to conclude, now, v2 patch fixes two things - 1) It makes ereport > to print a correct error number (the error number that matches with > the error message), 2) It sets the errno to ENOSPC (assuming that the > problem is no disk space) if write system call fails to set an errno. Yes, 1) and 2) and not completely exclusive either, there are some code paths where both problems happen, like RecreateTwoPhaseFile. -- Michael
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера