Re: [HACKERS] Walsender timeouts and large transactions
От | Craig Ringer |
---|---|
Тема | Re: [HACKERS] Walsender timeouts and large transactions |
Дата | |
Msg-id | CAMsr+YHNcsTQMUkDcZOyghQWHB278L8idF4wz+g+JpEu=oiDYA@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: [HACKERS] Walsender timeouts and large transactions (Petr Jelinek <petr.jelinek@2ndquadrant.com>) |
Ответы |
Re: [HACKERS] Walsender timeouts and large transactions
|
Список | pgsql-hackers |
On 7 December 2017 at 01:22, Petr Jelinek <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)
&& big_condition)
one_linerdo_something;
as awfully unreadable, but I guess code convention means you live with things you don't like.
В списке pgsql-hackers по дате отправления: