Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ciVsb-0003cT-OX for pgsql-hackers@arkaria.postgresql.org; Tue, 28 Feb 2017 00:43:01 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1ciVsb-0000xQ-BE for pgsql-hackers@arkaria.postgresql.org; Tue, 28 Feb 2017 00:43:01 +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 1ciVsa-0000tc-5b for pgsql-hackers@postgresql.org; Tue, 28 Feb 2017 00:43:00 +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 1ciVsX-0006Hy-V5 for pgsql-hackers@postgresql.org; Tue, 28 Feb 2017 00:42:58 +0000 Received: from Davids-iMac.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 0C68C5574C; Tue, 28 Feb 2017 00:42:56 +0000 (UTC) Subject: Re: PATCH: Make pg_stop_backup() archive wait optional To: Michael Paquier References: <758e3fd1-45b4-5e28-75cd-e9e7f93a4c02@pgmasters.net> Cc: Pg Hackers From: David Steele Message-ID: <35b7530c-68ce-7090-e13c-e39e4dac9bca@pgmasters.net> Date: Mon, 27 Feb 2017 19:42:55 -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 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-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On 2/27/17 7:38 PM, Michael Paquier wrote: > On Tue, Feb 28, 2017 at 9:25 AM, David Steele wrote: >> I also marked the pg_stop_* functions as parallel restricted, the same >> as pg_start_backup(). Previously they were parallel safe which I don't >> believe is accurate for the non-exclusive version at the very least, >> since it is tied to a particular backend. > > Yeah, those should really be parallel restricted. For the exclusive > version, having the function run in parallel would also lead to errors > per the presence/lack of backup_label file. I'm not sure that's the case. It seems like it should lock just as multiple backends would now. One process would succeed and the others would error. Maybe I'm missing something? Either way, I don't think the behavior makes any sense. Parallel safe seems more sensible. -- -David david@pgmasters.net -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers