Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ckyWW-0005q2-QB for pgsql-committers@arkaria.postgresql.org; Mon, 06 Mar 2017 19:42:24 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1ckyWW-0000wf-BJ for pgsql-committers@arkaria.postgresql.org; Mon, 06 Mar 2017 19:42:24 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ckyWH-0000Xi-L0 for pgsql-committers@postgresql.org; Mon, 06 Mar 2017 19:42:09 +0000 Received: from mail.thelabyrinth.net ([45.56.70.56]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ckyWA-0007Y0-Hq; Mon, 06 Mar 2017 19:42:08 +0000 Received: from Davids-MacBook.local (unknown [98.204.177.190]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: dsteele) by mail.thelabyrinth.net (Postfix) with ESMTPSA id EB4F1556F4; Mon, 6 Mar 2017 19:42:00 +0000 (UTC) Subject: Re: pgsql: Mark pg_start_backup and pg_stop_backup as parallel-restricted. To: Robert Haas , pgsql-committers@postgresql.org References: From: David Steele Message-ID: <3542dfbd-68dd-f246-8fb5-d2ac25d947fc@pgmasters.net> Date: Mon, 6 Mar 2017 14:41:58 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit 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 On 3/6/17 12:48 PM, Robert Haas wrote: > Mark pg_start_backup and pg_stop_backup as parallel-restricted. > > They depend on backend-private state that will not be synchronized by > the parallel machinery, so they should not be marked parallel-safe. > 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. I think it would be worth back-patching the catalog fix for future 9.6 clusters as a start. Parallelism is off by default in 9.6 so that mitigates some of the problem. I don't have any regression tests that cover backups when parallelism is enabled in 9.6, but I'm willing to do that and see if this is a realistic issue or not. -- -David david@pgmasters.net -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers