pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jeff Frost <jeff@frostconsultingllc.com>
To: Simon Riggs <simon@2ndquadrant.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: archive_command
Date: Tue, 4 Oct 2005 10:09:10 -0700 (PDT)
Message-ID: <Pine.LNX.4.63.0510041004350.18833@discord.dyndns.org> (raw)
In-Reply-To: <1128442195.8603.324.camel@localhost.localdomain>
References: <20031115132118.V74587@holywar.net>
	<433AC059.1050300@musicrebellion.com>
	<Pine.LNX.4.63.0509280925070.28080@discord.dyndns.org>
	<433ACE02.3040208@musicrebellion.com>
	<1128071627.19345.256.camel@localhost.localdomain>
	<Pine.LNX.4.63.0509300926340.1280@discord.dyndns.org>
	<1128113968.4045.32.camel@localhost.localdomain>
	<Pine.LNX.4.63.0510012142210.13614@discord.dyndns.org>
	<1128246295.3717.76.camel@localhost.localdomain>
	<Pine.LNX.4.63.0510031950290.10454@discord.dyndns.org>
	<1128420570.8603.279.camel@localhost.localdomain>
	<Pine.LNX.4.63.0510040759100.9849@discord.dyndns.org>
	<1128442195.8603.324.camel@localhost.localdomain>

On Tue, 4 Oct 2005, Simon Riggs wrote:

>> What would constitute an intermediate rebuild?  Of course the system is up and
>> live and having data added to it.  How would one restore from multiple
>> timelines?
>
> This is only if you are back up and working on the went-down box:
>
> intermediate rebuild: I mean that you will have to restore the data from
> the period of switchover, manually extract the relevant data with SQL
> and then re-insert those changes yourself and resolve conflicts.

I think we're likely out of luck here, but let me provide a few more details 
so you might give me a better idea.

We are up on the went-down box with a pg_dump restore from the 3:30a.m. of the 
previous day.  We have WAL files available from the box that was up during the 
failure of the primary.  What I do not have is a base backup of the box which 
was up for part of the day while we brought up the went-down box.  So, unless 
there is some method of replaying WAL files by hand one at a time, I think we 
are out of luck, no?


>
> There isn't a process to merge the two log streams. The same txnid will
> have been used on both servers to refer to separate transactions, so
> there can be no automated way of resolving the data. It has to be done
> using business domain knowledge rather than log data.
>
> All of that's no different from any other RDBMS, as I'm sure you know.

I do know, and in fact, I think PITR is great, I just wish we had thought 
about the corner case of the servers switching roles between the biweekly base 
backups.

-- 
Jeff Frost, Owner 	<jeff@frostconsultingllc.com>
Frost Consulting, LLC 	http://www.frostconsultingllc.com/
Phone: 650-780-7908	FAX: 650-649-1954



view thread (17+ messages)  latest in thread

Message-ID: <Pine.LNX.4.63.0510041004350.18833@discord.dyndns.org>
Permalink:  ../Pine.LNX.4.63.0510041004350.18833@discord.dyndns.org/
Also on:    postgresql.org/message-id/Pine.LNX.4.63.0510041004350.18833@discord.dyndns.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: jeff@frostconsultingllc.com, simon@2ndquadrant.com
  Subject: Re: archive_command
  In-Reply-To: <Pine.LNX.4.63.0510041004350.18833@discord.dyndns.org>
  References: <20031115132118.V74587@holywar.net> <433AC059.1050300@musicrebellion.com> <Pine.LNX.4.63.0509280925070.28080@discord.dyndns.org> <433ACE02.3040208@musicrebellion.com> <1128071627.19345.256.camel@localhost.localdomain> <Pine.LNX.4.63.0509300926340.1280@discord.dyndns.org> <1128113968.4045.32.camel@localhost.localdomain> <Pine.LNX.4.63.0510012142210.13614@discord.dyndns.org> <1128246295.3717.76.camel@localhost.localdomain> <Pine.LNX.4.63.0510031950290.10454@discord.dyndns.org> <1128420570.8603.279.camel@localhost.localdomain> <Pine.LNX.4.63.0510040759100.9849@discord.dyndns.org> <1128442195.8603.324.camel@localhost.localdomain> <Pine.LNX.4.63.0510041004350.18833@discord.dyndns.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox