Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dINos-0000sG-R1 for pgsql-committers@arkaria.postgresql.org; Tue, 06 Jun 2017 23:23:26 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dINos-0004Yc-Dm for pgsql-committers@arkaria.postgresql.org; Tue, 06 Jun 2017 23:23:26 +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 1dINos-0004YT-4X for pgsql-committers@postgresql.org; Tue, 06 Jun 2017 23:23:26 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dINoo-0004p4-Mi for pgsql-committers@postgresql.org; Tue, 06 Jun 2017 23:23:25 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id BE71A209A6 for ; Tue, 6 Jun 2017 19:23:20 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute5.internal (MEProxy); Tue, 06 Jun 2017 19:23:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=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=zN2gpjF+bydjLbdo/G +t/ZVo8UxwWq3Fj9BFCdk1cKo=; b=sDKV+dWAKSRbN8chLkTotOfREo5xg53Ir6 dRwJzPz89gFOuQhoDQOokUTdQS8bUz3UdmpfQPqt29T91gXctZnMC8qJ/79PhF9c A4ouxR433P4jPQhZjK3PbSZ1JR8aBcgr0aZcTCauwjayxCvp5brnrkFY0NbgcbCa AhUgCyGNGNOUZsnC0RhLWka+jFRdhv+rubu1mmA/ctW0aemPj9GOTt9m8E+SoZyg T4sFZ9y/t07FbC8Eq5DpmNJYbzeIASBniNxQXFTw0I4/mMBflsIYYPNkCzjrrzKF IzpATwcY3IPHjE2uuDLQo1i+XUIcouqJqR5+BizK8UwcYMO2samA== X-ME-Sender: X-Sasl-enc: 9ZUbDmcVzJnlLTNlDkvKZDGm6pNq+Vy679RH0SFdvmm2 1496791400 Received: from intern.anarazel.de (unknown [208.72.138.107]) by mail.messagingengine.com (Postfix) with ESMTPA id 7873B247E7 for ; Tue, 6 Jun 2017 19:23:20 -0400 (EDT) Date: Tue, 6 Jun 2017 16:23:19 -0700 From: Andres Freund To: pgsql-committers@postgresql.org Subject: Re: pgsql: Unify SIGHUP handling between normal and walsender backends. Message-ID: <20170606232319.bkogyyi63oyodatg@alap3.anarazel.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Pg-Spam-Score: -2.6 (--) 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 2017-06-06 02:25:18 +0000, Andres Freund wrote: > Unify SIGHUP handling between normal and walsender backends. > > Because walsender and normal backends share the same main loop it's > problematic to have two different flag variables, set in signal > handlers, indicating a pending configuration reload. Only certain > walsender commands reach code paths checking for the > variable (START_[LOGICAL_]REPLICATION, CREATE_REPLICATION_SLOT > ... LOGICAL, notably not base backups). > > This is a bug present since the introduction of walsender, but has > gotten worse in releases since then which allow walsender to do more. > > A later patch, not slated for v10, will similarly unify SIGHUP > handling in other types of processes as well. > > Author: Petr Jelinek, Andres Freund > Reviewed-By: Michael Paquier > Discussion: https://postgr.es/m/20170423235941.qosiuoyqprq4nu7v@alap3.anarazel.de > Backpatch: 9.2-, bug is present since 9.0 > > Branch > ------ > REL9_6_STABLE > > Details > ------- > https://git.postgresql.org/pg/commitdiff/b8bd32a51f2dd451644175af7ae32f9bec3153f1 > > Modified Files > -------------- > src/backend/replication/walsender.c | 29 +++++++---------------------- > src/backend/tcop/postgres.c | 30 ++++++++++++++---------------- > src/backend/utils/init/globals.c | 1 + > src/include/miscadmin.h | 5 +++++ > 4 files changed, 27 insertions(+), 38 deletions(-) This commit, or one of its siblings, seemingly caused 'handfish' to fail with a weird error message: https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=handfish&dt=2017-06-06%2002%3A59%3A01 ccache gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -g -O2 -I. -I. -I../../../src/include -D_GNU_SOURCE -I/usr/include/libxml2 -c -o walsender.o walsender.c Assembler messages: Fatal error: can't create walsender.o: No such file or directory : recipe for target 'walsender.o' failed I'm clueless what that could be caused by, given that the rest of the 9.6 animals do not seem to be scared. Any ideas? So far I just plan to wait till the machine runs again on its own. - Andres -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers