| От | Tom Lane |
|---|---|
| Тема | Re: [HACKERS] Write Ahead Logging for Hash Indexes |
| Дата | |
| Msg-id | 2328.1489589004@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: [HACKERS] Write Ahead Logging for Hash Indexes (Stephen Frost <sfrost@snowman.net>) |
| Список | pgsql-hackers |
Stephen Frost <sfrost@snowman.net> writes:
> I do see that mdwrite() should handle an out-of-disk-space case, though
> that just makes me wonder what's different here compared to normal
> relations that we don't have an issue with a sparse WAL'd hash index but
> we can't handle it if a normal relation is sparse.
*Any* write has to be prepared to handle errors. There's always a risk of
EIO, and on a COW filesystem you might well get ENOSPC even when you think
you're overwriting previously-allocated storage. All that we are doing by
pre-allocating storage is reducing the risks a bit, not guaranteeing that
no error will happen.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера