public inbox for [email protected]  
help / color / mirror / Atom feed
From: Koen De Groote <[email protected]>
To: Adrian Klaver <[email protected]>
Cc: PostgreSQL General <[email protected]>
Subject: Re: Basebackup fails without useful error message
Date: Mon, 21 Oct 2024 22:49:44 +0200
Message-ID: <CAGbX52Ho_kP8W3GpcDH98i30wd+TSo44RaGbry8aYfxU0QjOtw@mail.gmail.com> (raw)
In-Reply-To: <[email protected]>
References: <CAGbX52Fg2jxqGVZzeQ_QcHSZ8fgDjnVZUJy5NUb5-PAf8fvxkw@mail.gmail.com>
	<[email protected]>
	<CAGbX52EyjjOQJUjA0m4+0azs_yH1by63p6hhJg7Y66=VCCqzpA@mail.gmail.com>
	<[email protected]>
	<CAGbX52ENsSHKoTyu5+XfN1o1bZ2w2CJaE1oQnxcm=fj2SyoZXg@mail.gmail.com>
	<[email protected]>

See, I'm reading that, and my conclusion is "Ah great, it will try again,
everything will be fine."

There's a link between the archive_command, pg_basebackup and
wal_sender_timeout, but that link isn't clear from just reading all these
documentation pages when learning about their concepts separately.

It's just too much information to read and then "just know" in your head
that these must be the relations. Especially if you have dozens of other
things to do.

That's my 2 cents.

Regards,
Koen De Groote


On Sun, Oct 20, 2024 at 11:12 PM Adrian Klaver <[email protected]>
wrote:

> On 10/20/24 14:03, Koen De Groote wrote:
>
> > So I'm assuming the process of writing WAL files, if there is an
> > archive_command set, is only considered to be finished after the archive
> > is written, not just when the WAL file is written in pg_wal.
>
>
> https://www.postgresql.org/docs/current/continuous-archiving.html#BACKUP-ARCHIVING-WAL
>
> "It is important that the archive command return zero exit status if and
> only if it succeeds. Upon getting a zero result, PostgreSQL will assume
> that the file has been successfully archived, and will remove or recycle
> it. However, a nonzero status tells PostgreSQL that the file was not
> archived; it will try again periodically until it succeeds."
>
>
> > Regards,
> > Koen De Groote
> >
> >
>
> --
> Adrian Klaver
> [email protected]
>
>


view thread (2+ messages)  latest in thread

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 using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected]
  Subject: Re: Basebackup fails without useful error message
  In-Reply-To: <CAGbX52Ho_kP8W3GpcDH98i30wd+TSo44RaGbry8aYfxU0QjOtw@mail.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 agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox