Re: Remove Deprecated Exclusive Backup Mode

From: Andres Freund <andres(at)anarazel(dot)de>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: David Steele <david(at)pgmasters(dot)net>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Remove Deprecated Exclusive Backup Mode
Date: 2018-12-12 02:39:40
Message-ID: 20181212023940.f2tjdk2qglhzbayk@alap3.anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

On 2018-12-12 11:05:36 +0900, Robert Haas wrote:
> As for my vote, I do not buy the idea that because we're changing some
> stuff about recovery.conf we should go ahead and do this too. Yes,
> they are related, but just because you adjust your backup/restore
> script/tool to cope with one change doesn't mean that you don't have
> to adjust it some more to cope with the other change.

Sure, but you have to touch it, and it's not that big of an additional
change. Call the other form of pg_stop_backup(), and write the contents
of the two returned textblobs into backup_label/tablespace_map. As a
reward you get a backup that break crash-safety for the database, and
not having to do the migration later.

> I also think that the idea that supporting the exclusive backup
> interface is hurting anything is greatly exaggerated. Whether we keep
> it or not, we're not forcing anyone to use it.

It's hurting users. I've seen numerous outages due to the backup_label
file being around in the wrong moment.

Greetings,

Andres Freund

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2018-12-12 02:44:40 Re: Remove Deprecated Exclusive Backup Mode
Previous Message Michael Paquier 2018-12-12 02:32:55 Re: Remove Deprecated Exclusive Backup Mode