pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Maksim Milyutin <milyutinma@gmail.com>
To: Andre Piwoni <apiwoni@webmd.net>
Cc: Michael Paquier <michael@paquier.xyz>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15638: pg_basebackup with --wal-method=stream incorrectly generates WAL segment created during backup
Date: Thu, 21 Feb 2019 21:28:03 +0300
Message-ID: <a079a3ee-f2f8-021a-595c-60dd3926f32e@gmail.com> (raw)
In-Reply-To: <CAEC-+VG=OkuqC4S1COP_MitP+nd82AwU+Nydz_ZhTOTuYsErTQ@mail.gmail.com>
References: <15638-426547bdd97938dd@postgresql.org>
	<20190216152503.GK2240@paquier.xyz>
	<b8217ce6-c620-0997-7ccf-b6f809a08645@gmail.com>
	<CAEC-+VHa5zh6_p6xEyj2p2WjpdEkFw0pUK4V9AyY4JKL8MvoGw@mail.gmail.com>
	<CAEC-+VG=OkuqC4S1COP_MitP+nd82AwU+Nydz_ZhTOTuYsErTQ@mail.gmail.com>

On 2/19/19 9:08 PM, Andre Piwoni wrote:

> By the way, you can assert this structure, including now explained 
> diff in WAL segment taken during backup, for fetch vs stream WAL 
> method by creating master and then creating new slave by taking base 
> backup using both methods:
>
> pg_basebackup -h new_slave -D /var/lib/pgsql/10/data -v -P -R -U 
> replication --wal-method=stream
> pg_basebackup -h new_slave -D /var/lib/pgsql/10/data -v -P -R -U 
> replication --wal-method=fetch


I have verified on different versions of PostgreSQL the identity of 
conflict segments received from master node and from pg_basebackup 
--wal-method=stream. On PG11+ they are binary identical. However on PG10 
and lower the segments are binary different. The logical content are the 
same while meaningless tails differ.

In case of pg_basebackup --wal-method=fetch the segments are entirely 
the same. And this case doesn't produce any problem in archiving.

I think the backup tools as well as custom archive scripts have to take 
account of these points.

<http://www.webmdhealthservices.com/;

-- 
Regards,
Maksim Milyutin

view thread (12+ messages)  latest in thread

Message-ID: <a079a3ee-f2f8-021a-595c-60dd3926f32e@gmail.com>
Permalink:  ../a079a3ee-f2f8-021a-595c-60dd3926f32e@gmail.com/
Also on:    postgresql.org/message-id/a079a3ee-f2f8-021a-595c-60dd3926f32e@gmail.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-bugs@postgresql.org
  Cc: milyutinma@gmail.com, apiwoni@webmd.net, michael@paquier.xyz
  Subject: Re: BUG #15638: pg_basebackup with --wal-method=stream incorrectly generates WAL segment created during backup
  In-Reply-To: <a079a3ee-f2f8-021a-595c-60dd3926f32e@gmail.com>
  References: <15638-426547bdd97938dd@postgresql.org> <20190216152503.GK2240@paquier.xyz> <b8217ce6-c620-0997-7ccf-b6f809a08645@gmail.com> <CAEC-+VHa5zh6_p6xEyj2p2WjpdEkFw0pUK4V9AyY4JKL8MvoGw@mail.gmail.com> <CAEC-+VG=OkuqC4S1COP_MitP+nd82AwU+Nydz_ZhTOTuYsErTQ@mail.gmail.com> <a079a3ee-f2f8-021a-595c-60dd3926f32e@gmail.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