pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Peter <pmc@citylink.dinoex.sub.org>
Cc: Magnus Hagander <magnus@hagander.net>
Cc: Stephen Frost <sfrost@snowman.net>
Cc: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: pgsql-general <pgsql-general@lists.postgresql.org>
Subject: Re: Something else about Redo Logs disappearing
Date: Mon, 15 Jun 2020 15:19:29 +0200
Message-ID: <ec8d3b4c811519aa377c94f83450f046a62fd38c.camel@cybertec.at> (raw)
In-Reply-To: <20200615125022.GA21249@gate.oper.dinoex.org>
References: <20200609194248.GL6680@tamriel.snowman.net>
	<20200610074608.GA29949@gate.oper.dinoex.org>
	<20200610123222.GV6680@tamriel.snowman.net>
	<20200611173032.GA93488@gate.oper.dinoex.org>
	<CABUevEz8PtmzeXc5smHFm4BxNefOegD5oqUo-_pzyZS4cHphiQ@mail.gmail.com>
	<dfc123b2c836c038cf2d49cde07fc5d4dc9f08a8.camel@cybertec.at>
	<20200613032453.GA8494@gate.oper.dinoex.org>
	<fe4fd7730e5f292342eb2b0a86db51fd55cf34fe.camel@cybertec.at>
	<20200613174816.GA842@gate.oper.dinoex.org>
	<b31226eea04e6905b0ca2003cf230cfdae8ce5eb.camel@cybertec.at>
	<20200615125022.GA21249@gate.oper.dinoex.org>

On Mon, 2020-06-15 at 14:50 +0200, Peter wrote:
> ! An example:
> ! 
> ! - Backup #1 calls "pgpre.sh"
> ! - Backup #1 starts copying files
> ! - Backup #2 calls "pgpre.sh".
> !   This will cancel the first backup.
> ! - Backup #1 completes copying files.
> ! - Backup #1 calls "pgpost.sh".
> !   It will receive an error.
> !   So it has to invalidate the backup.
> ! - Backup #2 completes copying files.
> ! - Backup #2 calls "pgpost.sh".
> !   It gets a "backup_label" file and completes the backup.
> 
> That's not true.

Ah, yes, you are right.
It's a while since I wrote these scripts.

Since "pgpre.sh" and "pgpost.sh" are independent, there
is no way to tell which of them belongs to which other.

So calling "pgpost.sh" indeed ends the most recently started
backup and returns "backup_label" accordingly.

That means: the caller of the scripts has to make sure
not to start a second backup while the first one is running.

Yours,
Laurenz Albe
-- 
Cybertec | https://www.cybertec-postgresql.com






view thread (36+ messages)  latest in thread

Message-ID: <ec8d3b4c811519aa377c94f83450f046a62fd38c.camel@cybertec.at>
Permalink:  ../ec8d3b4c811519aa377c94f83450f046a62fd38c.camel@cybertec.at/
Also on:    postgresql.org/message-id/ec8d3b4c811519aa377c94f83450f046a62fd38c.camel@cybertec.at

 · 

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: laurenz.albe@cybertec.at, pmc@citylink.dinoex.sub.org, magnus@hagander.net, sfrost@snowman.net, adrian.klaver@aklaver.com
  Subject: Re: Something else about Redo Logs disappearing
  In-Reply-To: <ec8d3b4c811519aa377c94f83450f046a62fd38c.camel@cybertec.at>
  References: <20200609194248.GL6680@tamriel.snowman.net> <20200610074608.GA29949@gate.oper.dinoex.org> <20200610123222.GV6680@tamriel.snowman.net> <20200611173032.GA93488@gate.oper.dinoex.org> <CABUevEz8PtmzeXc5smHFm4BxNefOegD5oqUo-_pzyZS4cHphiQ@mail.gmail.com> <dfc123b2c836c038cf2d49cde07fc5d4dc9f08a8.camel@cybertec.at> <20200613032453.GA8494@gate.oper.dinoex.org> <fe4fd7730e5f292342eb2b0a86db51fd55cf34fe.camel@cybertec.at> <20200613174816.GA842@gate.oper.dinoex.org> <b31226eea04e6905b0ca2003cf230cfdae8ce5eb.camel@cybertec.at> <20200615125022.GA21249@gate.oper.dinoex.org> <ec8d3b4c811519aa377c94f83450f046a62fd38c.camel@cybertec.at>

* 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