Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id ADD301337BA3 for ; Thu, 27 Jan 2011 08:25:49 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 60937-05 for ; Thu, 27 Jan 2011 12:25:43 +0000 (UTC) X-Greylist: delayed 00:15:04.562799 by SQLgrey-1.7.6 Received: from hm1479-39.locaweb.com.br (hm1479-39.locaweb.com.br [201.76.49.220]) by mail.postgresql.org (Postfix) with ESMTP id 3B46E1337BA4 for ; Thu, 27 Jan 2011 08:25:42 -0400 (AST) Received: from hm2084.locaweb.com.br (189.126.112.73) by hm1479-21.locaweb.com.br (PowerMTA(TM) v3.5r15) id h85i4e0nvdcd for ; Thu, 27 Jan 2011 10:10:10 -0200 (envelope-from ) Received: from bart0009.locaweb.com.br (bart0009.email.locaweb.com.br [200.234.210.75]) by hm2084.locaweb.com.br (Postfix) with ESMTP id 5BD2B440119 for ; Thu, 27 Jan 2011 10:10:03 -0200 (BRST) X-LocaWeb-COR: locaweb_2009_x-mail Received: from [192.168.5.205] (189-19-0-90.dsl.telesp.net.br [189.19.0.90]) (Authenticated sender: waldomiro@shx.com.br) by bart0009.locaweb.com.br (Postfix) with ESMTPA id 3A93E17EFE1DC for ; Thu, 27 Jan 2011 10:10:03 -0200 (BRST) Message-ID: <4D416099.8060107@shx.com.br> Date: Thu, 27 Jan 2011 10:10:01 -0200 From: Waldomiro User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; pt-BR; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 MIME-Version: 1.0 To: pgsql-performance@postgresql.org Subject: Why I lost the last pg_xlog file? Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.96.5 at hm2084 X-Virus-Status: Clean X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.5 tagged_above=-10 required=5 tests=BAYES_05=-0.5, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201101/254 X-Sequence-Number: 42041 Hi, Yesterday I perform a crash test, but I lost the last pg_xlog file. Let me explain: First I did the pg_start_backup Second I copied the phisical files to the slave server Third I did the pg_stop_backup So I run a test, 1) In the master server I created a 100.000 records table 2) I Runned the "checkpoint" command to be sure the table will be saved. 3) I check the pg_xlog, there was created 6 logs, but in the archive there was only 5. 4) I copied the achives files to the slave server and I created a recovery.conf and started the slave postgres. 5) Postgres recovered the 5 log files correctly, but the new table did not came to the slave. I think because the last pg_xlog file was not archived. I did not understand why the last file wasnt archieved? There is a command to be sure all pg_xlog is archived? or I need to copy the last file to the slave before recovery? How is the correctly way to perform a recovery in this case? Thanks, Waldomiro Caraiani