Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d1ORr-0003Lb-Uo for pgsql-hackers@arkaria.postgresql.org; Fri, 21 Apr 2017 02:37:28 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1d1ORr-000706-BG for pgsql-hackers@arkaria.postgresql.org; Fri, 21 Apr 2017 02:37:27 +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 1d1ORq-0006zt-Le for pgsql-hackers@postgresql.org; Fri, 21 Apr 2017 02:37:26 +0000 Received: from mail-wr0-x234.google.com ([2a00:1450:400c:c0c::234]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1d1ORn-0008AF-MI for pgsql-hackers@postgresql.org; Fri, 21 Apr 2017 02:37:25 +0000 Received: by mail-wr0-x234.google.com with SMTP id z109so46323524wrb.1 for ; Thu, 20 Apr 2017 19:37:23 -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=JJeWEOQFhYSloQKyTK/OCO2u/FfNyKp6uCCQMS+gF5w=; b=rsz8VGv+9YBr/03Dk1S3tN7BCF0Yiv+HWvo3uQ7mo2OiDkUeI/j/b464df/Nuh2ceY PEr9s+cGhtELNObLLaFvneI2AlHWx1wDvRREdpemNxYjY/8XGJmxoZfkEacs2yWASe43 H/m5hkLrG5lmSfr+MJHTuOd7RwiW5QWnTfQrV8gAW+sukuqeMTAo42maUr/EWTAKRNfm uU+E/xocbI4UeD0IjvCS42NHsZVUvvgTR51yVFLyBT0vRkckPmPgcjVWtGp0XuVOJ9S4 MOkztDVWicbTUaPFiBW53eqTWWsNQf3JYTUVMwgcNfNHpTKoK3YK4YUNBhfXXjGQsEWT b41w== 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=JJeWEOQFhYSloQKyTK/OCO2u/FfNyKp6uCCQMS+gF5w=; b=bkFqHKr5mzeOCbqUCrGCCbszW6bZjKhyg2LS+Gt1ha8p8lXZze8l4UZd5nd7F5wvp7 FRRvpmGGwYPApkbBZIpXIKCeyL1E7V/NbdEaw9NqBDZfDe9hjdD9amL5HLOsBG+8YaYa /FEE8mPbeWN86/Pi5qwycfbY4bzhmnoOQNh4vXmWQnqCFhGd3PcOg/QHdC5KWCuf+S1v 8OREWLKpCxD7AA1W0oznrMrbGaT6RkUpno5W/rouwpvbAy3nUNhm5CG6hMdQX7LeaBbW Wa/kfnvohyDkCIP8A8+AZyCmfsjxBsdtIJw3dEj76JU71Tyl/8dkmB2M4igHp2mQf0Jm 0MKQ== X-Gm-Message-State: AN3rC/6F9/CELRvLuMwvLUKlZZ0ZziYJgeM14Dz1NYqsaC+0ZR3bBdNu DceJJ9lOnpYPUEoo X-Received: by 10.223.164.2 with SMTP id d2mr11529779wra.194.1492742241605; Thu, 20 Apr 2017 19:37:21 -0700 (PDT) Received: from [192.168.0.105] (150.123.broadband11.iol.cz. [90.178.123.150]) by smtp.gmail.com with ESMTPSA id l29sm154419wmi.8.2017.04.20.19.37.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 Apr 2017 19:37:20 -0700 (PDT) Subject: Re: walsender & parallelism To: Craig Ringer References: <20170421014030.fdzvvvbrz4nckrow@alap3.anarazel.de> Cc: Andres Freund , PostgreSQL Hackers , Petr Jelinek , Peter Eisentraut From: Petr Jelinek Message-ID: Date: Fri, 21 Apr 2017 04:37:20 +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: 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 21/04/17 04:32, Craig Ringer wrote: > On 21 April 2017 at 10:20, Petr Jelinek wrote: >> On 21/04/17 03:40, Andres Freund wrote: >>> >>> Since [1] walsender (not receiver as commit message says) can execute >>> SQL queries. While doing some testing of [2] I noticed that SQL queries >>> in walsender get stuck if parallelism is used - I have not investigated >>> why that is yet, but it surely is an issue. On first blush I'd suspect >>> that some signalling is not wired up correctly (cf. am_walsender branches >>> in PostgresMain() and such). >> >> Looks like SIGUSR1 being different is problem here - it's normally used >> to . I also noticed that we don't handle SIGINT (query cancel). >> >> I'll write proper patch but can you try to just use >> procsignal_sigusr1_handler for SIGUSR1 in walsender.c to see if it fixes >> the issue? > > That's what my recovery conflicts for logical decoding on standby > patch does, FWIW. > > I haven't found any issues yet.. > Ah I knew I've seen that change somewhere. I thought it was either in my patch or master which is why I thought it's working fine already. -- 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