Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cW1rn-0003cv-K9 for pgsql-admin@arkaria.postgresql.org; Tue, 24 Jan 2017 14:14:35 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cW1rn-0006io-2w for pgsql-admin@arkaria.postgresql.org; Tue, 24 Jan 2017 14:14:35 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cW1rm-0006h4-DY for pgsql-admin@postgresql.org; Tue, 24 Jan 2017 14:14:34 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cW1rj-0000bz-RG for pgsql-admin@postgresql.org; Tue, 24 Jan 2017 14:14:33 +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 v0OEELDh014805; Tue, 24 Jan 2017 09:14:21 -0500 From: Tom Lane To: Achilleas Mantzios cc: pgsql-admin@postgresql.org Subject: Re: Strange times in WAL files in archive directory (9.3) In-reply-to: <588759C8.3090209@matrix.gatewaynet.com> References: <58871A66.306@matrix.gatewaynet.com> <58873609.4030004@matrix.gatewaynet.com> <13126.1485264550@sss.pgh.pa.us> <588759C8.3090209@matrix.gatewaynet.com> Comments: In-reply-to Achilleas Mantzios message dated "Tue, 24 Jan 2017 15:42:32 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <14803.1485267261.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Tue, 24 Jan 2017 09:14:21 -0500 Message-ID: <14804.1485267261@sss.pgh.pa.us> X-Pg-Spam-Score: -5.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 Achilleas Mantzios writes: > On 24/01/2017 15:29, Tom Lane wrote: >> The larger issue here is that you're confusing the function of an archiv= e area with that of the active WAL directory. The server will prune what is= in the active WAL directory and does not want your=20 >> help. In an archive directory, I'd expect the files to have monotonic ti= mestamps corresponding to the times you copied them over to the archive, so= you could rely on the timestamp sequence there.=20 > I would be silly to mess around with pg_xlog. I was talking about the > archive directory. *There* is where I noticed the inconsistencies. If you copied the files to the archive directory when the server told you they were ready, it should be impossible for them to have non-sequential timestamps. I'm wondering if you tried to short-circuit that, perhaps by hard-linking them instead of copying. That won't work at all, since the server will reuse (overwrite) the files once it thinks you've copied them. regards, tom lane --=20 Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin