Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1byJFR-00038h-8Z for pgsql-committers@arkaria.postgresql.org; Sun, 23 Oct 2016 13:55:37 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1byJFQ-00064Z-Kt for pgsql-committers@arkaria.postgresql.org; Sun, 23 Oct 2016 13:55:36 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1byJFQ-00064S-4t for pgsql-committers@postgresql.org; Sun, 23 Oct 2016 13:55:36 +0000 Received: from mail-qk0-x234.google.com ([2607:f8b0:400d:c09::234]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1byJFM-0007xM-QN for pgsql-committers@postgresql.org; Sun, 23 Oct 2016 13:55:34 +0000 Received: by mail-qk0-x234.google.com with SMTP id n189so206310857qke.0 for ; Sun, 23 Oct 2016 06:55:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hagander-net.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=qLlQ2IFYm9AxM00N4HU/qUfxCjVxmuD082/9jk+HoxI=; b=B09hyraj5b9kNnEwETeiIesrAqqOojMM2e0qnxF41rMmRyMDOr9rU/jkP1KIh+EbvO c2G/pehyv2lYZZ6gQ0NPTH5gb7fL7LnRFhygCdgLAMagDDzyfyVO2YbvjGMTuMEgX02M A2xTMDiYp1dABKdqJPnh2KwK7vD07QCyaQmdTJmc7/qQJ6KB9tGQzrGBep9K0lOWDtDu VazwXactmSpjo0XVYo2GuSGbhqeG59uaBTBAwQe1b3CjDALJZeI8z+X+7C5/L4QvpTE9 gHz+g23VVJ54EARQyp2gm1vUsZ4IAQEnca48iPNjxF+UlbeRpoEGtqKH4PMTMp8shpOl MB2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=qLlQ2IFYm9AxM00N4HU/qUfxCjVxmuD082/9jk+HoxI=; b=TLz/8bTZveCYCeQM394199WsCCxUJqcsYDV1CNW4Q5aljI1RXd//LNrhLHP/eUUaWo cD4OVlQ9xLYJ5l9mXU3eLCwHpBHcpKdw1dBw6FxVU66jcdT/yMVAKGWpN8vrUv9Swg0t BL6+xtJJscfLXpCsmCn8Voehx/CaBnL9K0DhV0SVX4QOY8RVrsOKRHfS7ep2nMA9EzmZ dYEw77TaPhL8sFew0xSx1A6PFWZpf92kCm8i0iBZqQ1Co7BCe6pJJ7N9L3KGDUd5OKeM lJUIl7WeX9uIwCMUpuFepyj727K38PaFni2oVnM5nyItTJp8MEDW4I1dibfO+2L+fjFp ylsA== X-Gm-Message-State: ABUngveEDH/V550VKIimiuomsw1wAUWjib8t/qdQk/nP676KRggDKrImlrY1/H6Sly9YWa3oGXuevXTOxOtvTA== X-Received: by 10.55.43.158 with SMTP id r30mr9903002qkr.187.1477230931629; Sun, 23 Oct 2016 06:55:31 -0700 (PDT) MIME-Version: 1.0 Received: by 10.237.33.174 with HTTP; Sun, 23 Oct 2016 06:55:31 -0700 (PDT) In-Reply-To: References: From: Magnus Hagander Date: Sun, 23 Oct 2016 15:55:31 +0200 Message-ID: Subject: Re: pgsql: Allow pg_basebackup to stream transaction log in tar mode To: pgsql-committers Content-Type: multipart/alternative; boundary=001a1149430eee8d64053f88a062 X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org --001a1149430eee8d64053f88a062 Content-Type: text/plain; charset=UTF-8 That broke some buildfarm. Looking into it. //Magnus On Sun, Oct 23, 2016 at 3:28 PM, Magnus Hagander wrote: > Allow pg_basebackup to stream transaction log in tar mode > > This will write the received transaction log into a file called > pg_wal.tar(.gz) next to the other tarfiles instead of writing it to > base.tar. When using fetch mode, the transaction log is still written to > base.tar like before, and when used against a pre-10 server, the file > is named pg_xlog.tar. > > To do this, implement a new concept of a "walmethod", which is > responsible for writing the WAL. Two implementations exist, one that > writes to a plain directory (which is also used by pg_receivexlog) and > one that writes to a tar file with optional compression. > > Reviewed by Michael Paquier > > Branch > ------ > master > > Details > ------- > http://git.postgresql.org/pg/commitdiff/56c7d8d4552180fd66fe48423bb2a9 > bb767c2d87 > > Modified Files > -------------- > doc/src/sgml/ref/pg_basebackup.sgml | 18 +- > src/bin/pg_basebackup/Makefile | 2 +- > src/bin/pg_basebackup/pg_basebackup.c | 62 +- > src/bin/pg_basebackup/pg_receivexlog.c | 10 +- > src/bin/pg_basebackup/receivelog.c | 316 ++++------ > src/bin/pg_basebackup/receivelog.h | 3 +- > src/bin/pg_basebackup/t/010_pg_basebackup.pl | 6 +- > src/bin/pg_basebackup/walmethods.c | 886 > +++++++++++++++++++++++++++ > src/bin/pg_basebackup/walmethods.h | 45 ++ > src/include/pgtar.h | 1 + > src/port/tar.c | 2 +- > 11 files changed, 1107 insertions(+), 244 deletions(-) > > > -- > Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-committers > -- Magnus Hagander Me: http://www.hagander.net/ Work: http://www.redpill-linpro.com/ --001a1149430eee8d64053f88a062 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
That broke some buildfarm. Looking into it.

=
//Magnus

On Sun, Oct 23, 2016 at 3:28 PM, Magnus Hagander = <magnus@hagande= r.net> wrote:
Allow pg_base= backup to stream transaction log in tar mode

This will write the received transaction log into a file called
pg_wal.tar(.gz) next to the other tarfiles instead of writing it to
base.tar. When using fetch mode, the transaction log is still written to base.tar like before, and when used against a pre-10 server, the file
is named pg_xlog.tar.

To do this, implement a new concept of a "walmethod", which is responsible for writing the WAL. Two implementations exist, one that
writes to a plain directory (which is also used by pg_receivexlog) and
one that writes to a tar file with optional compression.

Reviewed by Michael Paquier

Branch
------
master

Details
-------
http://git.postgresq= l.org/pg/commitdiff/56c7d8d4552180fd66fe48423bb2a9bb767c2d87=

Modified Files
--------------
doc/src/sgml/ref/pg_basebackup.sgml=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = |=C2=A0 18 +-
src/bin/pg_basebackup/Makefile=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0|=C2=A0 =C2=A02 +-
src/bin/pg_basebackup/pg_basebackup.c=C2=A0 =C2=A0 =C2=A0 =C2=A0 |=C2= =A0 62 +-
src/bin/pg_basebackup/pg_receivexlog.c=C2=A0 =C2=A0 =C2=A0 =C2=A0|=C2= =A0 10 +-
src/bin/pg_basebackup/receivelog.c=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0| 316 ++++------
src/bin/pg_basebackup/receivelog.h=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0|=C2=A0 =C2=A03 +-
src/bin/pg_basebackup/t/010_pg_basebackup.pl |=C2=A0 =C2=A06 +-<= br> src/bin/pg_basebackup/walmethods.c=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0| 886 +++++++++++++++++++++++++++
src/bin/pg_basebackup/walmethods.h=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0|=C2=A0 45 ++
src/include/pgtar.h=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 |=C2=A0 =C2=A01 +
src/port/tar.c=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0|=C2=A0 =C2=A02 +-
11 files changed, 1107 insertions(+), 244 deletions(-)


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



--
=C2=A0M= agnus Hagander
=C2=A0Me: http://www.hagander.net/
=C2=A0Work: http://www.redpill-linpro.com/
--001a1149430eee8d64053f88a062--