Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UQPT7-0002fl-4J for pgsql-admin@arkaria.postgresql.org; Thu, 11 Apr 2013 21:55:45 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UQPT5-0006Nr-Ua for pgsql-admin@arkaria.postgresql.org; Thu, 11 Apr 2013 21:55:43 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UQPT5-0006Nm-7e for pgsql-admin@postgresql.org; Thu, 11 Apr 2013 21:55:43 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UQPSy-0002Aw-2n for pgsql-admin@postgresql.org; Thu, 11 Apr 2013 21:55:42 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id r3BLtYEv012451; Thu, 11 Apr 2013 17:55:34 -0400 (EDT) From: Tom Lane To: Keith Ouellette cc: "pgsql-admin@postgresql.org" Subject: Re: Wall replay In-reply-to: <417C5AF7C228B94490192951394BEFE7AF396A@AIPHLEXDAG01B.airgas.com> References: <417C5AF7C228B94490192951394BEFE7AF396A@AIPHLEXDAG01B.airgas.com> Comments: In-reply-to Keith Ouellette message dated "Thu, 11 Apr 2013 21:01:31 -0000" Date: Thu, 11 Apr 2013 17:55:34 -0400 Message-ID: <12450.1365717334@sss.pgh.pa.us> X-Pg-Spam-Score: -4.3 (----) 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 Keith Ouellette writes: > I am realatively new to PostgreSQL. I have two servers in a Master/Slave relationship using WAL as the replication method. I have what I hope to be an easy question. If the Master goes down and before the slave is promoted, there may be a case where a log file may not have been shipped to the slave yet. If the new Master starts to process new transactions, is there a way to have it process the unshipped WAL files if they are copied to it? I do not see that case in the documentation. You'd have to ship the remaining WAL over *before* the slave has come up live, else it's too late. If you're concerned about gaps of that sort, though, you should not be using log file shipping at all. Set up streaming replication instead. (If the PG version you're using hasn't got that, high time to move to something newer.) 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