From: Peter <pmc@citylink.dinoex.sub.org>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Something else about Redo Logs disappearing
Date: Tue, 9 Jun 2020 21:02:29 +0200
Message-ID: <20200609190229.GA63168@gate.oper.dinoex.org> (raw)
In-Reply-To: <2191826.1591680440@sss.pgh.pa.us>
References: <20200609000253.GA21670@gate.oper.dinoex.org>
<d105ee7a-19d5-3207-6311-a1dde37f95f5@aklaver.com>
<20200609023326.GA61487@gate.oper.dinoex.org>
<c5ae78f9-e922-29bc-379d-739baeb06e2f@aklaver.com>
<2191826.1591680440@sss.pgh.pa.us>
On Tue, Jun 09, 2020 at 01:27:20AM -0400, Tom Lane wrote:
! Adrian Klaver <adrian.klaver@aklaver.com> writes:
! > On 6/8/20 7:33 PM, Peter wrote:
! >> That "cp" is usually not synchronous. So there is the possibility
! >> that this command terminates successfully, and reports exitcode zero
! >> back to the Postgres, and then the Postgres will consider that log
! >> being safely away.
!
! > Which is why just following the above command in the docs is:
! > "(This is an example, not a recommendation, and might not work on all
! > platforms.) "
!
! Yeah. There have been discussions about changing that disclaimer to be
! more forceful, because in point of fact a plain "cp" is generally not safe
! enough. You need to fsync the written file, and on many filesystems you
! also have to fsync the directory it's in.
It certainly does not need to be "more forceful" - because this is not
about behavioural education, like training dogs, horses, or monkeys,
and neither do we entertain a BDSM studio.
What it needs instead is mention of the magic word "fsync". Because,
we already know that - we just need a reminder at the proper place.
Systems integrators are professional people. They are not in need of
more beating (spell: forceful education), only of substantial
technical hints and informations.
! > Generally for peace of mind folks use third party tools like:
!
! +1. Rolling your own archive script is seldom advisable.
Well then, using commercial solutions brings it's own problems. E.g.,
the people I happened to work for often had problems with torsion,
which happens when the solution gets longer than, say, twenty meters,
and these are walked at high speeds.
They didn't have a problem with scripting - rather the opposite, they
were happy with it and paid good money for.
cheerio,
PMc
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, tgl@sss.pgh.pa.us, adrian.klaver@aklaver.com
Subject: Re: Something else about Redo Logs disappearing
In-Reply-To: <20200609190229.GA63168@gate.oper.dinoex.org>
References: <20200609000253.GA21670@gate.oper.dinoex.org> <d105ee7a-19d5-3207-6311-a1dde37f95f5@aklaver.com> <20200609023326.GA61487@gate.oper.dinoex.org> <c5ae78f9-e922-29bc-379d-739baeb06e2f@aklaver.com> <2191826.1591680440@sss.pgh.pa.us> <20200609190229.GA63168@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