pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Achilleas Mantzios - cloud <a.mantzios@cloud.gatewaynet.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: pg_basebackup / recovery
Date: Wed, 12 Apr 2023 13:45:56 +0300
Message-ID: <9f9aaa96-cd32-bbb9-ba15-d8685c9aeb08@cloud.gatewaynet.com> (raw)
In-Reply-To: <CAA5-nLBiTp2xj9A2LOg4pYFjBhY7UyN7ACBo2RDA0=k=BQyPWg@mail.gmail.com>
References: <CAA5-nLBiTp2xj9A2LOg4pYFjBhY7UyN7ACBo2RDA0=k=BQyPWg@mail.gmail.com>

On 4/12/23 12:32, Fabrice Chapuis wrote:

> During recovery process of a self contained backup, how postgres know 
> to stop reading wal when consistency is reached?


Because it knows the full packup info. It will observe the

STOP WAL LOCATION: 3BC7/4B000130 (file 0000000200003BC70000004B)

inside the backup file

  It's a full contained backup because you haven't called with the |-X 
/|method none|/| , and it doesn't get into standby because you haven't 
called with |--write-recovery-conf !|

|I believe by default it will do what you meant that you want.
|

view thread (4+ messages)  latest in thread

Message-ID: <9f9aaa96-cd32-bbb9-ba15-d8685c9aeb08@cloud.gatewaynet.com>
Permalink:  ../9f9aaa96-cd32-bbb9-ba15-d8685c9aeb08@cloud.gatewaynet.com/
Also on:    postgresql.org/message-id/9f9aaa96-cd32-bbb9-ba15-d8685c9aeb08@cloud.gatewaynet.com

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: a.mantzios@cloud.gatewaynet.com
  Subject: Re: pg_basebackup / recovery
  In-Reply-To: <9f9aaa96-cd32-bbb9-ba15-d8685c9aeb08@cloud.gatewaynet.com>
  References: <CAA5-nLBiTp2xj9A2LOg4pYFjBhY7UyN7ACBo2RDA0=k=BQyPWg@mail.gmail.com> <9f9aaa96-cd32-bbb9-ba15-d8685c9aeb08@cloud.gatewaynet.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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