Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VbYwt-0002mO-2F for pgsql-admin@arkaria.postgresql.org; Wed, 30 Oct 2013 16:48:51 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VbYws-0007Ty-BP for pgsql-admin@arkaria.postgresql.org; Wed, 30 Oct 2013 16:48:50 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VbYwr-0007Tr-9J for pgsql-admin@postgresql.org; Wed, 30 Oct 2013 16:48:49 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VbYwk-0006NR-Cs for pgsql-admin@postgresql.org; Wed, 30 Oct 2013 16:48:49 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id r9UGmedY004982; Wed, 30 Oct 2013 12:48:40 -0400 From: Tom Lane To: Drazen Kacar cc: pgsql-admin@postgresql.org Subject: Re: Zeroed out pages at the end of the database files In-reply-to: References: Comments: In-reply-to Drazen Kacar message dated "Wed, 30 Oct 2013 17:35:23 +0100" Date: Wed, 30 Oct 2013 12:48:40 -0400 Message-ID: <4981.1383151720@sss.pgh.pa.us> X-Pg-Spam-Score: -2.4 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org Drazen Kacar 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 -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin