pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Jānis Pūris <janis@puris.lv>
To: pgsql-general@lists.postgresql.org
To: Ron <ronljohnsonjr@gmail.com>
Subject: Re: pg_basebackup from 9.4-bdr to 9.4 results in corrupt index
Date: Sat, 25 May 2019 14:26:21 -0700
Message-ID: <13318921-b017-30eb-ed0b-c0271132df2a@aklaver.com> (raw)
In-Reply-To: <CAFoG7ogj_EiCdCS3hHEVP5Gd1AeZngnPm8j9Fv=WUdnC3ho9sg@mail.gmail.com>
References: <CAFoG7ohq13_GaT7DRuQ+4Vzz97vTRoC44MKN+rk5nADwToGrHA@mail.gmail.com>
	<6414cdc6-106e-19c7-dec7-8b3f1f5e8245@gmail.com>
	<CAFoG7ogj_EiCdCS3hHEVP5Gd1AeZngnPm8j9Fv=WUdnC3ho9sg@mail.gmail.com>

On 5/25/19 11:46 AM, Jānis Pūris wrote:
> Hi Ron,
> 
> I can not reproduce this error on BDR_Node_2 (it is not BDR_Node_1 as 
> stated before. Typo)
> 
> I've been successful in transferring the data with pg_dump on BDR_Node_2 
> and then restoring it on Regular_Node_1. Then running "select * from 
> information_schema.sequences;" all is OK.

So the issue is that a binary backup/restore via pg_basebackup fails but 
a logical backup/restore via pg_dump/pg_restore works, correct?

You might want to take a look here:

https://github.com/2ndQuadrant/bdr/issues/140

It might make sense to you, it does not to me. Looks to me something is 
being done on the binary level that makes this difficult. I guessing you 
are going to have to talk to the BDR folks.

> 
> The problem with this approach is that I'm required to have minimal 
> downtime in this transition and we have a lot of data to transfer, which 
> would be lengthy process.
> 
> Thank you in advance.
> Best regards, Janis Puris
> 
> On 25 May 2019 at 19:16:11, Ron (ronljohnsonjr@gmail.com 
> <mailto:ronljohnsonjr@gmail.com>) wrote:
> 
>> 1. Are you sure that you removed all BDR from the node?
>> 2. Is the corruption there in BDR_Node_1?
>> 3. Can you rebuild the indexes?


-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (7+ messages)  latest in thread

Message-ID: <13318921-b017-30eb-ed0b-c0271132df2a@aklaver.com>
Permalink:  ../13318921-b017-30eb-ed0b-c0271132df2a@aklaver.com/
Also on:    postgresql.org/message-id/13318921-b017-30eb-ed0b-c0271132df2a@aklaver.com

 · 

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-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, janis@puris.lv, ronljohnsonjr@gmail.com
  Subject: Re: pg_basebackup from 9.4-bdr to 9.4 results in corrupt index
  In-Reply-To: <13318921-b017-30eb-ed0b-c0271132df2a@aklaver.com>
  References: <CAFoG7ohq13_GaT7DRuQ+4Vzz97vTRoC44MKN+rk5nADwToGrHA@mail.gmail.com> <6414cdc6-106e-19c7-dec7-8b3f1f5e8245@gmail.com> <CAFoG7ogj_EiCdCS3hHEVP5Gd1AeZngnPm8j9Fv=WUdnC3ho9sg@mail.gmail.com> <13318921-b017-30eb-ed0b-c0271132df2a@aklaver.com>

* 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