From: David Steele <david@pgmasters.net>
To: Magnus Hagander <magnus@hagander.net>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Stephen Frost <sfrost@snowman.net>
Cc: Robert Haas <rhaas@postgresql.org>
Cc: pgsql-committers <pgsql-committers@postgresql.org>
Subject: Re: [COMMITTERS] pgsql: Mark pg_start_backup and pg_stop_backup as parallel-restricted.
Date: Thu, 25 Jun 2020 11:20:23 -0400
Message-ID: <7767fe80-e296-cd47-896e-0119b5413a32@pgmasters.net> (raw)
In-Reply-To: <CABUevEzv7CbK+DWvGTyPh19f=pa931C6dMvwPNeQ7d7Edf+Uvw@mail.gmail.com>
References: <E1ckwkQ-0006gp-Jo@gemulon.postgresql.org>
<3542dfbd-68dd-f246-8fb5-d2ac25d947fc@pgmasters.net>
<25505.1488831808@sss.pgh.pa.us>
<20170306202815.GY9812@tamriel.snowman.net>
<5633507a-3382-37aa-845a-3d0b4cdcd03a@pgmasters.net>
<2235328.1593037629@sss.pgh.pa.us>
<76e6afc0-1be4-c1bb-6f92-6eb6b7c5c1f2@pgmasters.net>
<CABUevEzPYSC9Deveh6iFXJ9SAVgWX-7Kxi6gum2tDy32enB+ug@mail.gmail.com>
<fd97933b-93cb-a4e0-92e4-bf22d82915fa@pgmasters.net>
<CABUevEzv7CbK+DWvGTyPh19f=pa931C6dMvwPNeQ7d7Edf+Uvw@mail.gmail.com>
On 6/25/20 11:02 AM, Magnus Hagander wrote:
> On Thu, Jun 25, 2020 at 4:56 PM David Steele <david@pgmasters.net
> <mailto:david@pgmasters.net>> wrote:
>
> So we added that to session initialization in pgBackRest:
>
> https://github.com/pgbackrest/pgbackrest/commit/ea04ec7b3f4c6cf25c1b827c25c6a3c5896159a8
>
> Personally I would've done it *just* for 9.6 and not for 10+, but that's
> mostly semantic :) But if you do it for 9.6 then *eventually* you will
> be able to retire it.
We still support 8.3 so the day when we drop 9.6 support seems so far
away that I'm just not worried about it.
And yes, we still see users with 8.3/8.4 databases. Mostly they just
want to update but backups are an essential part of that process and
some of them are multi-TB databases.
We are planning to drop 8.3 support soon, though, and just tell users to
go back and use X version of pgbackrest if they really need it. This has
more to do with the availability of packages than anything else.
Christoph has built packages all the way back to 8.4 for all recent
Debian distros (thanks Christoph!) but the only place we can get 8.3
packages is on EOL distros, e.g. Ubuntu 12.04.
> I'm worried that (as Tom said) the planner might find another reason to
> choose a parallel query.
>
> I'm looking at this as more than a fix for 9.6. I can't see any reason
> for the backup control session to run queries in parallel and possibly
> use more resources, so parallelism is disabled for all versions that
> support it.
>
> Right. But since the parameters are flagged as parallel restricted in 10+...
>
> Or are you saying you're worried about other things, completely
> unrelated to start/stop backup, that the session might run?
That's what I'm worried about. We run other queries and functions
besides pg_start_backup()/pg_stop_backup(). None of them need to be
parallelized so why not just disable it? One less variable to worry about.
Regards,
--
-David
david@pgmasters.net
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-committers@postgresql.org
Cc: david@pgmasters.net, magnus@hagander.net, tgl@sss.pgh.pa.us, sfrost@snowman.net, rhaas@postgresql.org
Subject: Re: [COMMITTERS] pgsql: Mark pg_start_backup and pg_stop_backup as parallel-restricted.
In-Reply-To: <7767fe80-e296-cd47-896e-0119b5413a32@pgmasters.net>
References: <E1ckwkQ-0006gp-Jo@gemulon.postgresql.org> <3542dfbd-68dd-f246-8fb5-d2ac25d947fc@pgmasters.net> <25505.1488831808@sss.pgh.pa.us> <20170306202815.GY9812@tamriel.snowman.net> <5633507a-3382-37aa-845a-3d0b4cdcd03a@pgmasters.net> <2235328.1593037629@sss.pgh.pa.us> <76e6afc0-1be4-c1bb-6f92-6eb6b7c5c1f2@pgmasters.net> <CABUevEzPYSC9Deveh6iFXJ9SAVgWX-7Kxi6gum2tDy32enB+ug@mail.gmail.com> <fd97933b-93cb-a4e0-92e4-bf22d82915fa@pgmasters.net> <CABUevEzv7CbK+DWvGTyPh19f=pa931C6dMvwPNeQ7d7Edf+Uvw@mail.gmail.com> <7767fe80-e296-cd47-896e-0119b5413a32@pgmasters.net>
* 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