Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b3pMk-0006PZ-FJ for pgsql-admin@arkaria.postgresql.org; Fri, 20 May 2016 18:41:42 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1b3pMj-0003Tp-7n for pgsql-admin@arkaria.postgresql.org; Fri, 20 May 2016 18:41:41 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1b3pMi-0003Ta-Kp for pgsql-admin@postgresql.org; Fri, 20 May 2016 18:41:40 +0000 Received: from smtp-auth.no-ip.com ([8.23.224.61] helo=out.smtp-auth.no-ip.com) by magus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1b3pMe-0003GG-4n for pgsql-admin@postgresql.org; Fri, 20 May 2016 18:41:39 +0000 X-No-IP: alvh.no-ip.org@noip-smtp X-Report-Spam-To: abuse@no-ip.com Received: from alvin.alvh.no-ip.org (unknown [216.155.90.98]) (Authenticated sender: alvh.no-ip.org@noip-smtp) by smtp-auth.no-ip.com (Postfix) with ESMTPA id 11408400802; Fri, 20 May 2016 11:41:28 -0700 (PDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 4CDD45A3; Fri, 20 May 2016 14:41:26 -0400 (CLT) Date: Fri, 20 May 2016 14:41:26 -0400 From: Alvaro Herrera To: Tom Lane Cc: Dave Stibrany , pgsql-admin@postgresql.org Subject: Re: Does my pg_xlog directory look right? Message-ID: <20160520184126.GA333087@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <54621.1463769300@sss.pgh.pa.us> User-Agent: Mutt/1.5.23 (2014-03-12) X-Pg-Spam-Score: -1.1 (-) 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 Tom Lane wrote: > No, it probably means that neither one has been written at all yet. > Typically, when a WAL segment is deemed no longer needed, the file isn't > physically removed but is merely renamed into place as a future segment. > The idea is to reduce unnecessary filesystem work as we create and delete > WAL segments. You could check this out if you have pg_xlogdump at hand, > by seeing whether the WAL file's first page header claims to belong to the > segment indicated by the file name, or to some much-older segment. This may be a good time to point out that pg_xlogdump fails completely when a file's contents does not match the file name, with no indication about what a better file name would be. In other words, if a file has been recycled and not written to yet under the new name, it doesn't tell you anything useful. This is pretty annoying. -- Álvaro Herrera http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin