Re: Remove Deprecated Exclusive Backup Mode

From: Christophe Pettus <xof(at)thebuild(dot)com>
To: Stephen Frost <sfrost(at)snowman(dot)net>
Cc: Robert Haas <robertmhaas(at)gmail(dot)com>, Fujii Masao <masao(dot)fujii(at)gmail(dot)com>, 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: 2019-02-24 22:35:04
Message-ID: 90DCFBE6-BDD7-4F53-8BFA-CF68C4A5B1BF@thebuild.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> On Feb 24, 2019, at 14:19, Stephen Frost <sfrost(at)snowman(dot)net> wrote:
> You say above that the new interface is unquestionably an improvement
> and here say that we shouldn't deprecate the old one in favor of it
> (even though we actually already have... but that's beside the point I'm
> trying to make here), so what you're advocating for is that we keep an
> old and known broken interface that we know causes real issues even
> after we've developed a new and unquestionably better one.

Yes, I am advocating exactly that. The reason that I think we need to keep the old one (or, at least, not remove it as soon as 12) is that creating an obstacle to upgrades is worse than retaining the old one, and it *will* be an obstacle to upgrades (or to using the community edition at all).

I do think we need a simple, pg_basebackup-level-complexity hot backup tool that allows a forked copy operation, per Andres' suggestion.

There's no single answer to every possible situation like this that pops up; it depends on how widely used the interface was, how reasonable the expectation of permanence is, and the difficulty the users will encounter in changing to the new one, along with the complexity of maintaining the documentation and code for the old interface.

> A lot of them depended on pg_wal being named pg_xlog too, but we seem to
> have managed reasonably well through that, not to mention all the
> catalog changes that caused issues for monitoring, etc.

Some of the incompatible catalog changes (in particular, in pg_stat_activity) I thought were gratuitous, but we did them, and no point in relitigating that now. I'd say that the internal layout of PGDATA is fairly weak promise compared to an SQL-level construct, especially one as widely used as pg_start_backup().
--
-- Christophe Pettus
xof(at)thebuild(dot)com

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tsunakawa, Takayuki 2019-02-25 00:38:05 RE: Libpq support to connect to standby server as priority
Previous Message Andres Freund 2019-02-24 22:32:44 Re: Remove Deprecated Exclusive Backup Mode