pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pg_basebackup: wal streaming can only be used in plain mode
2+ messages / 2 participants
[nested] [flat]

* pg_basebackup: wal streaming can only be used in plain mode
@ 2015-08-04 23:09  Mitchell Bösecke <mitchell.bosecke@forcorp.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Mitchell Bösecke @ 2015-08-04 23:09 UTC (permalink / raw)
  To: pgsql-admin

Hi,

In regards to pg_basebackup, I want to use "--format=tar" (for the purpose
of sending the backup to stdout) but when I also try to use
"--xlog-method=stream" to include some WAL files (without worrying about
the wal_keep_segment parameter on the server) it tells me "wal streaming
can only be used in plain mode".

I can't find any documentation regarding this conflict between
"--format=tar" and "--xlog-method=stream". Can anyone provide any insight
into why this combination is forbidden, or where it might be documented?
Are there plans to support this combination in the future?

Thanks for any help

--
Mitchell Bosecke, B.Sc.
Software Developer

FORCORP
#101, 11710 Kingsway NW
Edmonton , AB, T5G 0X5
www.forcorp.com

(o) 587.410.4067
(f) 780.453.3986

^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: pg_basebackup: wal streaming can only be used in plain mode
@ 2015-08-05 01:44  John Scalia <jayknowsunix@gmail.com>
  parent: Mitchell Bösecke <mitchell.bosecke@forcorp.com>
  0 siblings, 0 replies; 2+ messages in thread

From: John Scalia @ 2015-08-05 01:44 UTC (permalink / raw)
  To: Mitchell Bösecke <mitchell.bosecke@forcorp.com>; pgsql-admin

Mitchell,

If you look in the documentation, you'll see that the streaming mode requires a second replication connection. So, how would you integrate two separate channels into one tar input?
Also, as the stream and backup aren't synchronized, there wouldn't be any way to isolate those in a tarball. True, they don't explicitly call this out, but if you think about it
only the -X f mode (fetch) makes any sense. This is why I always use the fetch mode when writing to tar.

FWIW,
Jay

On 8/4/2015 6:09 PM, Mitchell Bösecke wrote:
> Hi,
>
> In regards to pg_basebackup, I want to use "--format=tar" (for the purpose of sending the backup to stdout) but when I also try to use "--xlog-method=stream" to include some WAL
> files (without worrying about the wal_keep_segment parameter on the server) it tells me "wal streaming can only be used in plain mode".
>
> I can't find any documentation regarding this conflict between "--format=tar" and "--xlog-method=stream". Can anyone provide any insight into why this combination is forbidden,
> or where it might be documented? Are there plans to support this combination in the future?
>
> Thanks for any help
>
> --
> Mitchell Bosecke, B.Sc.
> Software Developer
>
> FORCORP
> #101, 11710 Kingsway NW
> Edmonton , AB, T5G 0X5
> www.forcorp.com <http://www.forcorp.com/;
>
> (o) 587.410.4067
> (f) 780.453.3986

^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2015-08-05 01:44 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2015-08-04 23:09 pg_basebackup: wal streaming can only be used in plain mode Mitchell Bösecke <mitchell.bosecke@forcorp.com>
2015-08-05 01:44 ` John Scalia <jayknowsunix@gmail.com>

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