Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dGOyE-0007xX-DU for pgsql-hackers@arkaria.postgresql.org; Thu, 01 Jun 2017 12:12:54 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dGOyE-0007LW-07 for pgsql-hackers@arkaria.postgresql.org; Thu, 01 Jun 2017 12:12:54 +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 1dGOwh-0004f2-P8 for pgsql-hackers@postgresql.org; Thu, 01 Jun 2017 12:11:19 +0000 Received: from mail-wm0-x235.google.com ([2a00:1450:400c:c09::235]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1dGOwe-0002HT-H8 for pgsql-hackers@postgresql.org; Thu, 01 Jun 2017 12:11:19 +0000 Received: by mail-wm0-x235.google.com with SMTP id 7so155384315wmo.1 for ; Thu, 01 Jun 2017 05:11:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=GzpXHN+4JLn32XmdVp4wxKfFsAY96PatW6pYLJgvJts=; b=oS++4+vHWQ6MArXk7guK7acF6A+iXeA8wUESdC57L0osJFMgjdPtfMmXZ3JqLv7nPU aLj+4A1rU9ot7oiYq7EBvHHO5VOa/H2xLGdHb+iMjIAhMxyD4lHTeeH+1gdy1VVJxYnI owl1NrHqsaJcJP5t6dGKC9V9q8d/Pp56tUTiGa0O8H4gN8dPZJ8t+M72MZVmmxjNBFj6 KzaAJCZ9DDAa/SSRpO3Htejks9Eop0w6CI8HBJDnYG5WL1gwI4wCSEcg2HBRLUTC4+P0 +7t7qwqxsxV5WdZfgSpG551Ezq15P08UaLDRi6e19A3rMsOTA4heYIxsdSncnd0CGJjt hbkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=GzpXHN+4JLn32XmdVp4wxKfFsAY96PatW6pYLJgvJts=; b=qxbyUYA/4lJCDBxse8Kd15NVDMajT4kd5f8jHAhnOUZx8J6pDyqVUA91AVHvFRCn4x qT3o+DfgbvWtlcqN74WeIFG09PCw7PqcAe6tJNVXJjSCbJ2IoAoGYUB0E/27KtU3hizP VOvbMWA8GwJ2/Z7vGENeZ2kzR30GjwgXT9r+c6H/OMwjOV94IpYYc9igGt10o95Rcb/k AAfqRi5c/p3MwUcC0Unj27SwHmFXljBmiQ27T00FHTlVHXoLO0x+Oi5MkdH84MhrcDnt vrO2rIF8I2Y31Ptnk1KvxjaDLBTV9j1BxlrGE5xyH8jlveN8cIq5xTnnuelhJNtlN+Pi m2Hw== X-Gm-Message-State: AODbwcCfgoq23A1wS9hh56nm1VaCJ97ICBt0Yze+tX9a7Z5W+XdmT2sp WniO1pqbYXsGb43m8lkUsTvqTGwfgA9YL7aYMHizElurMHCaQyVyCRNzG7x5rcs77IgNLtx+sji jZ8IFJAEHrG9IIsghU1cnAPtOMtM2kFjXLleQRquUtZ7idywXrWkw0Jakp1edSfwqyxvGpo+lUb 7U8A== X-Received: by 10.223.134.97 with SMTP id 30mr1051327wrw.161.1496319074823; Thu, 01 Jun 2017 05:11:14 -0700 (PDT) Received: from [192.168.0.105] (150.123.broadband11.iol.cz. [90.178.123.150]) by smtp.gmail.com with ESMTPSA id m14sm39746127wmi.2.2017.06.01.05.11.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Jun 2017 05:11:14 -0700 (PDT) Subject: Re: walsender & parallelism To: Andres Freund , Peter Eisentraut References: <20170423235941.qosiuoyqprq4nu7v@alap3.anarazel.de> <20170424000452.3iab4qpc3mtb2v6v@alap3.anarazel.de> <13973428-ca0b-b329-7f32-f15150e10334@2ndquadrant.com> <20170424232559.j5zuna3rpzksj26l@alap3.anarazel.de> <81eaca60-3f7b-6a21-5531-fd51ffbf3f63@2ndquadrant.com> <5fe9977b-1961-d663-004f-d138a74860ed@2ndquadrant.com> <0AD1D877-EFA4-4B11-A074-6B83D90402EA@anarazel.de> <20170601040613.j3ww7s5aqhowiqcj@alap3.anarazel.de> Cc: pgsql-hackers@postgresql.org From: Petr Jelinek Message-ID: <8d67240e-a84e-5c27-298c-72c8334448e8@2ndquadrant.com> Date: Thu, 1 Jun 2017 14:11:13 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <20170601040613.j3ww7s5aqhowiqcj@alap3.anarazel.de> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-Pg-Spam-Score: -2.6 (--) 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 01/06/17 06:06, Andres Freund wrote: > On 2017-05-31 23:51:08 -0400, Peter Eisentraut wrote: >> I think the easiest and safest thing to do now is to just prevent >> parallel plans in the walsender. See attached patch. This prevents the >> hang in the select_parallel tests run under your new test setup. > > I'm not quite sure I can buy this. The lack of wired up signals has > more problems than just hurting parallelism. In fact, the USR1 thing > seems like something that we actually should backpatch, rather than > defer to v11. I think there's some fair arguments to be made that we > shouldn't do the refactoring right now - although I'm not sure about it > - but just not fixing the bugs seems like a bad plan. > I think the signal handling needs to be fixed. It does not have to be done via large refactoring, but signals should be handled properly (= we need to share SIGHUP/SIGUSR1 handling between postgres.c and walsender.c). The rest can wait for PG11. -- Petr Jelinek http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers