Re: BUG #14999: pg_rewind corrupts control file global/pg_control
Вложения
В списке pgsql-bugs по дате отправления:
| От | Michael Paquier |
|---|---|
| Тема | Re: BUG #14999: pg_rewind corrupts control file global/pg_control |
| Дата | |
| Msg-id | 20180307014624.GC1744@paquier.xyz обсуждение |
| Ответ на | Re: BUG #14999: pg_rewind corrupts control file global/pg_control (Dmitry Dolgov <9erthalion6@gmail.com>) |
| Ответы |
Re: BUG #14999: pg_rewind corrupts control file global/pg_control
|
| Список | pgsql-bugs |
On Tue, Mar 06, 2018 at 09:37:34PM +0100, Dmitry Dolgov wrote: > Thank you for waiting. Yes, it also looks good for me, but I'm wondering about > one thing - does it make sense to think about other error codes here, not only > about `EACCESS`? E.g. if a file was removed during the process (so, it should > be `ENOENT`), or something more exotic happened, like there are too many > symbolic links were encountered in resolving a pathname (`ELOOP`)? The presence of the file is ensured in the pre-phase which builds the file map (see process_source_file), and actions are taken depending on the presence of a file on the source and the target. So a file missing on the target after those pre-checks have ensured that it was actually existing should be reported with ENOENT. ELOOP would as well be faced on the backend before seeing it in pg_rewind, no? In short, it seems to me that it is better to keep the code simple. -- Michael
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера