pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter <pmc@citylink.dinoex.sub.org>
To: Laurenz Albe <laurenz.albe@cybertec.at>
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: Sat, 13 Jun 2020 05:24:53 +0200
Message-ID: <20200613032453.GA8494@gate.oper.dinoex.org> (raw)
In-Reply-To: <dfc123b2c836c038cf2d49cde07fc5d4dc9f08a8.camel@cybertec.at>
References: <d105ee7a-19d5-3207-6311-a1dde37f95f5@aklaver.com>
	<20200609023326.GA61487@gate.oper.dinoex.org>
	<c5ae78f9-e922-29bc-379d-739baeb06e2f@aklaver.com>
	<20200609175521.GA96231@gate.oper.dinoex.org>
	<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>

On Thu, Jun 11, 2020 at 10:53:15PM +0200, Laurenz Albe wrote:
! On Thu, 2020-06-11 at 22:35 +0200, Magnus Hagander wrote:
! > I believe somebody around that time also wrote a set of bash scripts that can be used in a pre/post-backup-job combination with the current APIs.
! 
! https://github.com/cybertec-postgresql/safe-backup

Ah, thank You, very nice.

I've never seen anybody coding bash - it is strongly shunned in the
Berkeley community. 

Some Questions:
 1. There are explicit error messages in loc-82 and -92 of pgpre.sh.
    To where are these written?
 2. The result data from pg_stop_backup() are stored into the living
    database. But, according to the docs, they should be placed into
    the completed backup. Do I have a misunderstanding here?
 3. The most common error cause of a backup might be tape-side
    malfunction. So far as I see, the way to handle this is currently,
    to provide a timeout for pgpre.sh (which is problematic, because
    we might as well have just reached end-of-tape and have to wait
    until monday for the operator to change it). May I suggest to add
    a switch to pgpost.sh, in order to volutarily fail out of the job?
 4. If, by misconfiguration and/or operator error, the backup system
    happens to start a second backup. in parallel to the first,
    then do I correctly assume, both backups will be rendered
    inconsistent while this may not be visible to the operator; and
    the earlier backup would be flagged as apparently successful while
    carrying the wrong (later) label?

BTW: what does, in general, happen, if a backup_label file gets
accidentially swapped with one from a parallel, but slightly later
backup? Do I correctly assume that such mistake gets somehow detected,
as otherwise it would have just the same unwelcome effects
(i.e. silent data corruption) as no backup_label at all?

cheerio,
PMc





view thread (36+ messages)  latest in thread

Message-ID: <20200613032453.GA8494@gate.oper.dinoex.org>
Permalink:  ../20200613032453.GA8494@gate.oper.dinoex.org/
Also on:    postgresql.org/message-id/20200613032453.GA8494@gate.oper.dinoex.org

 · 

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: pmc@citylink.dinoex.sub.org, laurenz.albe@cybertec.at, magnus@hagander.net, sfrost@snowman.net, adrian.klaver@aklaver.com
  Subject: Re: Something else about Redo Logs disappearing
  In-Reply-To: <20200613032453.GA8494@gate.oper.dinoex.org>
  References: <d105ee7a-19d5-3207-6311-a1dde37f95f5@aklaver.com> <20200609023326.GA61487@gate.oper.dinoex.org> <c5ae78f9-e922-29bc-379d-739baeb06e2f@aklaver.com> <20200609175521.GA96231@gate.oper.dinoex.org> <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>

* 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