Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YtTuu-0007iK-1s for pgsql-admin@arkaria.postgresql.org; Sat, 16 May 2015 04:41:40 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YtTus-0000ur-KZ for pgsql-admin@arkaria.postgresql.org; Sat, 16 May 2015 04:41:38 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YtTuE-0008QF-94 for pgsql-admin@postgresql.org; Sat, 16 May 2015 04:40:58 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1YtTuA-0001h7-9l for pgsql-admin@postgresql.org; Sat, 16 May 2015 04:40:55 +0000 Received: from bruce by momjian.us with local (Exim 4.72) (envelope-from ) id 1YtTu7-0000Aj-FY; Sat, 16 May 2015 00:40:51 -0400 Date: Sat, 16 May 2015 00:40:51 -0400 From: Bruce Momjian To: Alexey Klyukin Cc: christian.echerer@manroland-web.com, =?iso-8859-1?Q?Andr=E1s_V=E1czi?= , "pgsql-admin@postgresql.org" Subject: Re: Missing timeline history file after execution of pg_upgrade Message-ID: <20150516044051.GB16102@momjian.us> References: <20141206140708.GA28234@momjian.us> <20150515023529.GJ23739@momjian.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150515023529.GJ23739@momjian.us> User-Agent: Mutt/1.5.20 (2009-06-14) X-Pg-Spam-Score: -1.9 (-) 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 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 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