| От | Tom Lane |
|---|---|
| Тема | Re: Zeroed out pages at the end of the database files |
| Дата | |
| Msg-id | 4981.1383151720@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Zeroed out pages at the end of the database files (Drazen Kacar <drazen.kacar@oradian.com>) |
| Список | pgsql-admin |
Drazen Kacar <drazen.kacar@oradian.com> writes:
> It turned out that pg_filedump reported errors for 34 database files, but
> that was because all those files had one or more database pages (8k) at the
> end of the file zeroed out.
This can definitely happen after a database crash; it's not a problem
since the wasted space will be recovered by VACUUM.
I don't recall at the moment if there are any code paths that can cause
it without a crash. However, if you're looking directly at the disk
files it's definitely possible for there to be zeroes in a page that
has been obtained from the OS but never yet flushed out of shared
buffers.
regards, tom lane
В списке pgsql-admin по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера