pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
To: Craig Ringer <craig@2ndquadrant.com>
To: Petr Jelinek <petr.jelinek@2ndquadrant.com>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
Cc: Yura Sokolov <funny.falcon@postgrespro.ru>
Cc: PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Subject: Re: [HACKERS] Walsender timeouts and large transactions
Date: Thu, 14 Dec 2017 11:36:31 -0500
Message-ID: <1a1af442-8f72-f8d6-25d6-fd8d01dd4eaf@2ndQuadrant.com> (raw)
In-Reply-To: <CAMsr+YHNcsTQMUkDcZOyghQWHB278L8idF4wz+g+JpEu=oiDYA@mail.gmail.com>
References: <e2939d26-f5cb-6581-0ca3-a1b0556ed729@2ndquadrant.com>
	<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>
	<CAMsr+YEuCJBXNjZ943sh+45chAk11M52t-L9bUwXj1iC97hmew@mail.gmail.com>
	<CA+TgmoYCnnFXNTk6EuXTxWs9CPg5X5vhOpTYxnsPzjvCfZOKeA@mail.gmail.com>
	<6f44fc5e-3083-3fe0-4078-fa6e94133d3f@2ndquadrant.com>
	<CAMsr+YHNcsTQMUkDcZOyghQWHB278L8idF4wz+g+JpEu=oiDYA@mail.gmail.com>



On 12/14/2017 01:46 AM, Craig Ringer wrote:
> On 7 December 2017 at 01:22, Petr Jelinek
> <petr.jelinek@2ndquadrant.com <mailto:petr.jelinek@2ndquadrant.com>>
> 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





view thread (30+ messages)  latest in thread

Message-ID: <1a1af442-8f72-f8d6-25d6-fd8d01dd4eaf@2ndQuadrant.com>
Permalink:  ../1a1af442-8f72-f8d6-25d6-fd8d01dd4eaf@2ndQuadrant.com/
Also on:    postgresql.org/message-id/1a1af442-8f72-f8d6-25d6-fd8d01dd4eaf@2ndQuadrant.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: andrew.dunstan@2ndquadrant.com, craig@2ndquadrant.com, petr.jelinek@2ndquadrant.com, robertmhaas@gmail.com, horiguchi.kyotaro@lab.ntt.co.jp, funny.falcon@postgrespro.ru
  Subject: Re: [HACKERS] Walsender timeouts and large transactions
  In-Reply-To: <1a1af442-8f72-f8d6-25d6-fd8d01dd4eaf@2ndQuadrant.com>
  References: <e2939d26-f5cb-6581-0ca3-a1b0556ed729@2ndquadrant.com> <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> <CAMsr+YEuCJBXNjZ943sh+45chAk11M52t-L9bUwXj1iC97hmew@mail.gmail.com> <CA+TgmoYCnnFXNTk6EuXTxWs9CPg5X5vhOpTYxnsPzjvCfZOKeA@mail.gmail.com> <6f44fc5e-3083-3fe0-4078-fa6e94133d3f@2ndquadrant.com> <CAMsr+YHNcsTQMUkDcZOyghQWHB278L8idF4wz+g+JpEu=oiDYA@mail.gmail.com> <1a1af442-8f72-f8d6-25d6-fd8d01dd4eaf@2ndQuadrant.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox