Re: Make pg_basebackup -x stream the default

From: Magnus Hagander <magnus(at)hagander(dot)net>
To: Vladimir Rusinov <vrusinov(at)google(dot)com>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Make pg_basebackup -x stream the default
Date: 2016-12-16 14:36:40
Message-ID: CABUevEx0r7wZHJVcLSQ4rQw96KRvs6zQ7-cJQerdftL_fyO6KQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Dec 15, 2016 at 12:37 AM, Vladimir Rusinov <vrusinov(at)google(dot)com>
wrote:

> Usability review
>
> ============
>
>
> Patch sounds like a good idea and does what it supposed to do. /me in DBA
> hat will be happy to have it.
>
> However, it makes '-x' parameter a bit confusing/surprising: specifying it
> will be equivalent to '-X fetch' which is surprising regression from the
> new default.
>

This seems like a good idea, really.

Given that we already break a number of other things around backups and
replication in this release, it seems like a good time.

I definitely think removing it is what we should do -- let's not redefine
it to mean streaming, let's just get rid of -x altogether, and have people
use -X streaming|fetch|none.

What do others feel about this?

One comment about docs:
>
>
> Includes the required transaction log files (WAL files) in the
>
> backup. This will include all transaction logs generated during
>
> - the backup. If this option is specified, it is possible to start
>
> - a postmaster directly in the extracted directory without the need
>
> - to consult the log archive, thus making this a completely
> standalone
>
> - backup.
>
> + the backup. Unless the option <literal>none</literal> is
> specified,
>
> + it is possible to start a postmaster directly in the extracted
>
> + directory without the need to consult the log archive, thus
>
> + making this a completely standalone backup.
>
> </para>
>
> <para>
>
> I suggest "method <literal>none</literal>" instead of "option
> <literal>none</literal>". I found the word "option" confusing in that
> sentence.
>
>
>
Sounds reasonable, will fix.

--
Magnus Hagander
Me: http://www.hagander.net/
Work: http://www.redpill-linpro.com/

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Kevin Grittner 2016-12-16 14:39:11 Re: [OSSTEST PATCH 0/1] PostgreSQL db: Retry on constraint violation [and 2 more messages] [and 1 more messages]
Previous Message Robert Haas 2016-12-16 14:24:54 Re: [OSSTEST PATCH 0/1] PostgreSQL db: Retry on constraint violation [and 2 more messages] [and 1 more messages]