Re: Zeroed out pages at the end of the database files - Mailing list pgsql-admin

From Tom Lane
Subject Re: Zeroed out pages at the end of the database files
Date
Msg-id 4981.1383151720@sss.pgh.pa.us
Whole thread Raw
In response to Zeroed out pages at the end of the database files  (Drazen Kacar <drazen.kacar@oradian.com>)
List 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 by date:

Previous
From: Drazen Kacar
Date:
Subject: Zeroed out pages at the end of the database files
Next
From: Евгений Селявка
Date:
Subject: Re: postgresql 9.1 out of memory