Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ePWV1-0005Qw-CX for pgsql-hackers@arkaria.postgresql.org; Thu, 14 Dec 2017 16:36:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ePWV0-0006Oh-HH for pgsql-hackers@arkaria.postgresql.org; Thu, 14 Dec 2017 16:36:42 +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 1ePWV0-0006OT-1r for pgsql-hackers@lists.postgresql.org; Thu, 14 Dec 2017 16:36:42 +0000 Received: from mail-yb0-x242.google.com ([2607:f8b0:4002:c09::242]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ePWUt-0008Dl-3t for pgsql-hackers@postgresql.org; Thu, 14 Dec 2017 16:36:40 +0000 Received: by mail-yb0-x242.google.com with SMTP id 69so3907947ybc.6 for ; Thu, 14 Dec 2017 08:36:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=from:subject:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=ryida7/sS5ka9bJF4maDjJ6gN5n6SPQo0uiBXGilIU4=; b=plGuX/a4rWDlNZOqmuyNrZMQnnlVKlepwIW9NMA4o288GFGw5yRiJ/5snpWVlzQ5gq qSsjWBTz7CJ6+3QPnOdDOc6vBYuXkHlpr5uAcdP49er9828teP99jF07Nx4el/oaVzIg Zp4cHr7fctDTl04ZAbSBq+3CrevfOONzys6COg7Z4URW/IY5J7BBED7S83dXYd47W4JI MA/9V0uJS4FPZTf7RWZeyVbMr17jq3rtW0D7PP8gEV1T3DyhnxxpwH2I+KZPRPhH/XQE /c6jOyX2vESG3QVZq/I+o1XFltC4K+FU/NYV4rar71DC0ecy1rG70e2lDmPLhxLje5eg t6Ug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=ryida7/sS5ka9bJF4maDjJ6gN5n6SPQo0uiBXGilIU4=; b=TINzBShKmX7I3JhTeQVLvk2Mw2+lFZdFwRwFR/ehBTC/dD1m0fHSmWktuXgnbiBYc5 7i+KJF5Ise/Rf7hD8lrVoflN/FJ5oAq31H/XpiViyiWakDSaC1dsPEg4N0NyJjolC3hw cNMmjnWCjJEs9qv1SIJ/343DK+b6+Lckq/ByAZ/wnLWSzkJgkHl4wZBpjW6Wa2WcB53T 3wL2fkMy/sBJna1XaFyw/l2Rg8P94Mn+7CrimZx9y2o/HohmrEm/dQUqY2o7PAXkGZUn 5cx3qbmDIjXsYwN9J4Ft7fKrowrhd6/2WHB1bTs+NgQ5of/FyjxqtJoaYaXug+dtSp/t Kwsg== X-Gm-Message-State: AKGB3mK/Q/WqrH1uGbdhynOfop1QTvSJ0XYFJk5TijL+KY6YVTd4g4Eb UghGAZGAm2tygaVa79mwYgqWNNj1dB3cncnkBXXixurggWkoz8qFgtbvugYlh8hnh5xwr/mluae JlveWiMMlJAlEt1DckmGQxZyggzXj2rPnSB5H4XcRABtBVSU9JlQQWSGjf+dj9iGjWKRs3Kzz5v 5zWgoOg4vzJ65x X-Google-Smtp-Source: ACJfBou7J1B7QT5BN1bTw5/CIb/yvYL836RKMJzYP36UPHtsTXRqcD+xAPtXXd5tjt5MD86GgLWTsw== X-Received: by 10.37.215.145 with SMTP id o139mr4905166ybg.518.1513269393234; Thu, 14 Dec 2017 08:36:33 -0800 (PST) Received: from [192.168.10.146] ([98.122.175.38]) by smtp.gmail.com with ESMTPSA id l18sm1924285ywa.60.2017.12.14.08.36.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Dec 2017 08:36:32 -0800 (PST) From: Andrew Dunstan X-Google-Original-From: Andrew Dunstan Subject: Re: [HACKERS] Walsender timeouts and large transactions To: Craig Ringer , Petr Jelinek Cc: Robert Haas , Kyotaro HORIGUCHI , Yura Sokolov , PostgreSQL Hackers References: <20171117.132408.85564852.horiguchi.kyotaro@lab.ntt.co.jp> <20171117.133555.250037971.horiguchi.kyotaro@lab.ntt.co.jp> <20171117.163543.173137002.horiguchi.kyotaro@lab.ntt.co.jp> <86acff25-ca5d-1dc0-2da7-006344021f06@2ndquadrant.com> <6f44fc5e-3083-3fe0-4078-fa6e94133d3f@2ndquadrant.com> Message-ID: <1a1af442-8f72-f8d6-25d6-fd8d01dd4eaf@2ndQuadrant.com> Date: Thu, 14 Dec 2017 11:36:31 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-MW List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 12/14/2017 01:46 AM, Craig Ringer wrote: > On 7 December 2017 at 01:22, Petr Jelinek > > > wrote: > > On 05/12/17 21:07, Robert Haas wrote: > >  > > Generally we write if (a && b) { ... } not if (a) { if (b) .. } > > > > It's rather ugly with && because one of the conditions is two > line, but > okay here you go. I am keeping the brackets even if normally don't for > one-liners because it's completely unreadable without them IMHO. > > >   > Yeah, that's why I passed on that FWIW. Sometimes breaking up a > condition is nice. Personally I intensely dislike the convention of  > > > if (big_condition >     && big_condition) >    one_linerdo_something; > > > as awfully unreadable, but I guess code convention means you live with > things you don't like. >   > > Anyway, I've just hit this bug in the wild for the umpteenth time this > year, and I'd like to know what I can do to help progress it to > commit+backport. > > Ask and ye shall receive. I've just committed it. cheers andrew -- Andrew Dunstan https://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services