Re: pg_basebackup --wal-method=fetch

From: Magnus Hagander <magnus(at)hagander(dot)net>
To: Ron Johnson <ronljohnsonjr(at)gmail(dot)com>
Cc: Pgsql-admin <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: Re: pg_basebackup --wal-method=fetch
Date: 2024-02-08 17:48:40
Message-ID: CABUevEy38dnyRaJNgbextVVWjC72K-v0EUO+W00L7+ZfqVoqVA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Thu, Feb 8, 2024, 17:05 Ron Johnson <ronljohnsonjr(at)gmail(dot)com> wrote:

> (PG 14, if it matters.)
>
> What's the purpose of fetch mode, as opposed to streaming mode? Is it a
> legacy of bygone days that just hasn't been deprecated, or is there
> something I don't understand from reading
> https://www.postgresql.org/docs/14/app-pgbasebackup.html?
>

Your backup can go to a single file with it, which it can't do in
streaming. Which means it can also be sent through a pipe.

It also needs one connection instead of two to the server, if that's
limited.

/Magnus

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Ron Johnson 2024-02-08 17:54:31 Re: pg_basebackup --wal-method=fetch
Previous Message Ron Johnson 2024-02-08 16:05:18 pg_basebackup --wal-method=fetch