Re: Add exclusive backup deprecation notes to documentation

From: David Steele <david(at)pgmasters(dot)net>
To: Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com>, Magnus Hagander <magnus(at)hagander(dot)net>
Cc: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Martín Marqués <martin(at)2ndquadrant(dot)com>, Michael Paquier <michael(at)paquier(dot)xyz>
Subject: Re: Add exclusive backup deprecation notes to documentation
Date: 2019-03-29 12:33:29
Message-ID: 171d1b11-5f81-e381-0cf9-d5d7ea2ec76a@pgmasters.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 3/29/19 11:58 AM, Peter Eisentraut wrote:
> On 2019-03-20 14:42, Magnus Hagander wrote:
>> But that would be factually incorrect and backwards, so it seems like a
>> terrible idea, at least when it comes to manual. If you are doing it
>> manually, it's a lot *easier* to do it right with the non-exclusive
>> mode, because you can easily keep one psql and one shell open. And
>> that's safe.
>
> The scenario I have in mind is, a poorly maintained server, nothing
> installed, can't install anything (no internet connection, license
> expired), flaky network, you fear it's going to fail soon, you need to
> take a backup. The simplest procedure would appear to be: start backup
> mode, copy files away, stop backup mode. Anything else that involves
> holding a session open over there for the whole time is way more fragile
> unless proper preparations have been made (and even then). So I don't
> know what you want to call that scenario, but I would feel more
> comfortable having these basic tools available in a bind.

I would argue the best thing in this scenario is to use pg_basebackup.
It's a solid tool and likely far better than any script the user might
cook up on the spot.

Regards,
--
-David
david(at)pgmasters(dot)net

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2019-03-29 12:37:40 Re: House style for DocBook documentation?
Previous Message Peter Eisentraut 2019-03-29 12:30:49 Re: Add exclusive backup deprecation notes to documentation