Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dNpRc-00051k-Ii for pgsql-hackers@arkaria.postgresql.org; Wed, 21 Jun 2017 23:53:56 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dNpRc-0003E5-3z for pgsql-hackers@arkaria.postgresql.org; Wed, 21 Jun 2017 23:53:56 +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 1dNpQ5-0000P4-Jk for pgsql-hackers@postgresql.org; Wed, 21 Jun 2017 23:52:21 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dNpQ2-0003SA-B7 for pgsql-hackers@postgresql.org; Wed, 21 Jun 2017 23:52:20 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 6BF2B20976; Wed, 21 Jun 2017 19:52:17 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute5.internal (MEProxy); Wed, 21 Jun 2017 19:52:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=fm1; bh=BDmk74bBcUJAVdxIBd DJfJotNeYW69cSvDZpkEi5+d4=; b=WFkVQ6esL+6O4CFKH+KzsTmHEk6cnDfuNk Zxj73A0fKo7cGNgo6SC8/KA/ebYQ0SY8nmQbM07yYCB4ti/YobTC7LjLqfFzi0Fl OnQZrl+BTKiaNM6+U6AyODtvjHZzRCwsbImjujm+9EOZ4PXFbzjumLeB/5BwYG3F ZKw+SksRl9oeJCc1JPd/o68JypmF5rGRCxDBnfX00MWey67WmzQ4vbwu2uX1iEYG gUkwZ6xcFUyMRbONW2ZNu6Bo+Byc7CC3+iKz6Gmtk9piK3PbrFmJbt41KSerZzNH bxDwNy9YKksrKoy4J6ZqkCBsj9SD9+BnnM1KAP6V/TAyrF4a00KA== X-ME-Sender: X-Sasl-enc: cXLj6hiOtfwqAeq0Skoxd41ZtBaHzVXgsATODeAsq6qn 1498089137 Received: from intern.anarazel.de (unknown [208.72.138.107]) by mail.messagingengine.com (Postfix) with ESMTPA id 2BA327E263; Wed, 21 Jun 2017 19:52:17 -0400 (EDT) Date: Wed, 21 Jun 2017 16:52:16 -0700 From: Andres Freund To: Michael Paquier Cc: Peter Eisentraut , PostgreSQL mailing lists Subject: Re: [COMMITTERS] pgsql: Restart logical replication launcher when killed Message-ID: <20170621235216.qekl7ocapfxi3w2d@alap3.anarazel.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 2017-06-22 08:46:35 +0900, Michael Paquier wrote: > On Thu, Jun 22, 2017 at 4:16 AM, Peter Eisentraut wrote: > > Restart logical replication launcher when killed > > - /* The logical replication launcher can be stopped at any time. */ > - proc_exit(0); > + /* The logical replication launcher can be stopped at any time. > + * Use exit status 1 so the background worker is restarted. */ > + proc_exit(1); > I know I am noisy on the matter but... This comment format is not PG-like. That's since been repaired by the new pgindent run. But what I'm a bit confused about is why we're going for proc_exit() for replication launchers when other types of processes simply FATAL out? Seems like a weird change. It's not like it's not log-worthy if somebody kills the launcher? - Andres -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers