Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ckzGD-0007sN-7H for pgsql-committers@arkaria.postgresql.org; Mon, 06 Mar 2017 20:29:37 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1ckzGC-0007Zo-Oj for pgsql-committers@arkaria.postgresql.org; Mon, 06 Mar 2017 20:29:36 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ckzFy-0007B9-FN for pgsql-committers@postgresql.org; Mon, 06 Mar 2017 20:29:22 +0000 Received: from tamriel.snowman.net ([72.66.115.51]) by magus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ckzFt-0003ZK-8m; Mon, 06 Mar 2017 20:29:19 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 344815F796; Mon, 6 Mar 2017 15:28:15 -0500 (EST) Date: Mon, 6 Mar 2017 15:28:15 -0500 From: Stephen Frost To: Tom Lane Cc: David Steele , Robert Haas , pgsql-committers@postgresql.org Subject: Re: pgsql: Mark pg_start_backup and pg_stop_backup as parallel-restricted. Message-ID: <20170306202815.GY9812@tamriel.snowman.net> References: <3542dfbd-68dd-f246-8fb5-d2ac25d947fc@pgmasters.net> <25505.1488831808@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="tvVU1P8Md8ldqNwV" Content-Disposition: inline In-Reply-To: <25505.1488831808@sss.pgh.pa.us> X-Editor: Vim http://www.vim.org/ X-Info: http://www.snowman.net X-Operating-System: Linux/3.13.0-91-generic (x86_64) X-Uptime: 15:26:59 up 240 days, 21:51, 15 users, load average: 0.11, 0.09, 0.06 User-Agent: Mutt/1.5.21 (2010-09-15) X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org --tvVU1P8Md8ldqNwV Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Tom, * Tom Lane (tgl@sss.pgh.pa.us) wrote: > David Steele writes: > > On 3/6/17 12:48 PM, Robert Haas wrote: > >> This issue also exists in 9.6, but we obviously can't do anything > >> about 9.6 clusters that already exist. Possibly this could be > >> back-patched so that future 9.6 clusters would come out OK, or > >> possibly we should back-patch some other fix, but that would need more > >> discussion. >=20 > > I think it would be worth back-patching the catalog fix for future 9.6= =20 > > clusters as a start. >=20 > Yes, I think it's rather silly not to do so. We have made comparable > backpatched fixes multiple times in the past. What is worth discussing is > whether there are *additional* things we ought to do in 9.6 to prevent > misbehavior in installations initdb'd pre-9.6.3. >=20 > If there's a cheap way of testing "AmInParallelWorker", I'd be in favor of > adding a quick-n-dirty test and ereport(ERROR) to these functions in the > 9.6 branch, so that at least you get a clean error and not some weird > misbehavior. Not sure if there's anything more we can do than that. That's more-or-less what I was thinking (and suggested to David over IM a little while ago, actually). I don't know if there's an easy way to do such a check, but I don't think it would really need to be particularly cheap, just not overly complex. These code paths are certainly not ones that need to be high-performance. Thanks! Stephen --tvVU1P8Md8ldqNwV Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJYvcZeAAoJEO1sijiDR2RVXgAQAJ56B25iAUJmsw4z9cybim5f Tp6NGdYmEwXEqgxYVEeUGAcrWnLa0yf1yA5se2FSH5gsx4TaAh6JZN25LOG1TKzs HqkvDUT+/3paxo0tvWJlD3I8ecxO/165RC+u6HZlVXqirRvlyP+gssoIxBeA9Ujm PpSUILHQEUonGrLuRhYdqSUGOcPI5U+eJlLt0PYkd7gy/7d8HmbQflkLOz8l7U/i Q4E8LQfMSrkQxVhJisEp+cade+vTNcQNPK0HnqOdNGBNmbXZqR/ThPwO67aJnCgb ryZpCZhlmsjjcKa81HKScdXArntMIfvrovfLgOnl3mTYHkuA3/ZRzOQwG2ga9qPz cIepJGYNZUsKAb0xhUPXI74wv3lwBXkzG9bGkkCq6wR7afADr9RgN+CBfbg+B8fH MXW75RvOo3ZdZ8M63rH1C2+C3sSaORI+TN80ny8qjpTFiQOvCQSN8w+tI8wJKj5D PAvkXx5XuLz+Xgi+PI61XoHYUYTRGa+rpbyTv+d4laOMZKUbFLJByxTwq1s5tUeI zb68m1DLNr8ioSYQGgWhrt1OkBazPzFuYnsBpDf4NYkwM/3B/1CSZvVmLFZvUVrc V4kWyxEEtXEAULR6EQOBNAMfcV0KaDOmKJ7d/oP9y5Z0nJMnsu1UvmQB6Q9GIzkR ii7Krgh+3P6DoJUiuijX =2DZT -----END PGP SIGNATURE----- --tvVU1P8Md8ldqNwV--