pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <bruce@momjian.us>
To: Alexey Klyukin <alexk@hintbits.com>
Cc: christian.echerer@manroland-web.com, András Váczi <avandras@gmail.com>
Cc: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Re: Missing timeline history file after execution of pg_upgrade
Date: Sat, 16 May 2015 00:40:51 -0400
Message-ID: <20150516044051.GB16102@momjian.us> (raw)
In-Reply-To: <20150515023529.GJ23739@momjian.us>
References: <D5359E0908278642BB1747131D62694DAB22560F@AUSMXMBX01.mrws.biz>
	<20141206140708.GA28234@momjian.us>
	<D5359E0908278642BB1747131D62694DB37B1A58@AUSMXMBX01.mrws.biz>
	<CAAS3tyLcMjUDfjrqo3+dy257EjBAXkU_08z+GoxswCN-fzq74w@mail.gmail.com>
	<CAAS3tyKOvC-5dRqQLj+T=tuHmrsVetBznFOwRgvLFYuzjtE90w@mail.gmail.com>
	<20150515023529.GJ23739@momjian.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>

On Thu, May 14, 2015 at 10:35:29PM -0400, Bruce Momjian wrote:
> > 
> > Nevertheless, the question is should pg_upgrade move the timeline history file
> > from the old server to the new one, and, to be more specific, are
> > there any cases when
> > moving such file is not recommended?
> 
> Sorry I am just getting to this --- you are right it is a bug.  I was
> unaware that pg_upgrade passed the timeline from the old cluster, but it
> does so when setting the WAL starting address with pg_resetxlog -l,
> which includes the timeline as the first eight hex digits.
> 
> I think there are two options:
> 
> 1)  force pg_resetxlog -l to pass timeline 1
> 2)  create a WAL history file to match the old cluster's timeline (!= 1)
> 
> I don't think we want to be doing #2, so I have developed the attached
> patch for #1, which I should backpatch to 9.4.  Do we store the timeline
> in any user tables that might be transfered?  Anywhere else?

Patch applied and backpatched through 9.0.

-- 
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + Everyone has their own god. +


-- 
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin



view thread (8+ messages)

Message-ID: <20150516044051.GB16102@momjian.us>
Permalink:  ../20150516044051.GB16102@momjian.us/
Also on:    postgresql.org/message-id/20150516044051.GB16102@momjian.us

 · 

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: bruce@momjian.us, alexk@hintbits.com, avandras@gmail.com
  Subject: Re: Missing timeline history file after execution of pg_upgrade
  In-Reply-To: <20150516044051.GB16102@momjian.us>
  References: <D5359E0908278642BB1747131D62694DAB22560F@AUSMXMBX01.mrws.biz> <20141206140708.GA28234@momjian.us> <D5359E0908278642BB1747131D62694DB37B1A58@AUSMXMBX01.mrws.biz> <CAAS3tyLcMjUDfjrqo3+dy257EjBAXkU_08z+GoxswCN-fzq74w@mail.gmail.com> <CAAS3tyKOvC-5dRqQLj+T=tuHmrsVetBznFOwRgvLFYuzjtE90w@mail.gmail.com> <20150515023529.GJ23739@momjian.us> <20150516044051.GB16102@momjian.us>

* 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