| От | Dianne Skoll |
|---|---|
| Тема | Re: Reliable WAL file shipping over unreliable network |
| Дата | |
| Msg-id | 20180228145341.0fdf5414@hydrogen.roaringpenguin.com обсуждение |
| Ответ на | Re: Reliable WAL file shipping over unreliable network (Rui DeSousa <rui.desousa@icloud.com>) |
| Список | pgsql-admin |
On Wed, 28 Feb 2018 13:49:33 -0500 Rui DeSousa <rui.desousa@icloud.com> wrote: > Really? I think you really need to think about it. You are dealing > with a race condition. You are not correct. 1) rsync copies the source file to a temporary file on the destination. 2) If and only if step (1) is successful, rsync renames the temporary file to the final filename. 3) If and only if step (2) is successful, rsync sets the timestamp on the destination file to match that of the source file, assuming the --archive or similar command-line option was given. There is no possible sequence of events that could give you a destination file with the same size and timestamp as the source file and yet be incorrect (just so long as the source file has stayed the same.) Regards, Dianne.
В списке pgsql-admin по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера