| От | Tom Lane |
|---|---|
| Тема | Re: AW: AW: AW: Vacuum only with 20% old tuples |
| Дата | |
| Msg-id | 11125.964624686@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | AW: AW: AW: Vacuum only with 20% old tuples (Zeugswetter Andreas SB <ZeugswetterA@wien.spardat.at>) |
| Список | pgsql-hackers |
Zeugswetter Andreas SB <ZeugswetterA@wien.spardat.at> writes:
>> If there are no more records, then you are reduced to guessing whether
>> you have to undo the rename or not. If you guess wrong, you leave the
>> database in a corrupted state.
> If the original filename exists the rename failed else it succeeded.
That's exactly the unreliable assumption I do not want to make.
> The backends could not have created a new file of the old name
> after "starting rename" beeing last log record.
So you're assuming that we fsync() the log after *each* item is added?
*Within* a transaction? fsync only at end of xact was the plan,
I believe.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера