| От | Alvaro Herrera |
|---|---|
| Тема | Re: pg_dump, gzwrite, and errno |
| Дата | |
| Msg-id | 20200619213047.GA7048@alvherre.pgsql обсуждение исходный текст |
| Ответ на | Re: pg_dump, gzwrite, and errno (Tom Lane <tgl@sss.pgh.pa.us>) |
| Список | pgsql-hackers |
On 2020-Jun-18, Tom Lane wrote: > Surely it's insufficient as-is, because there is no reason to suppose > that errno is zero at entry. You'd need to set errno = 0 first. Oh, right. > Also it's fairly customary in our sources to include a comment about > this machination; so the full ritual is usually more like Yeah, I had that in my local copy. Done like that in all the most obvious places. But there are more places that are still wrong: I believe every single place that calls WRITE_ERROR_EXIT is doing the wrong thing. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера