Re: fix psql \conninfo & \connect when using hostaddr - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: fix psql \conninfo & \connect when using hostaddr
Date
Msg-id 20181108124015.5go2xnkofgk5r2jp@alvherre.pgsql
Whole thread Raw
In response to Re: fix psql \conninfo & \connect when using hostaddr  (Arthur Zakirov <a.zakirov@postgrespro.ru>)
Responses Re: fix psql \conninfo & \connect when using hostaddr
List pgsql-hackers
On 2018-Nov-08, Arthur Zakirov wrote:

> On 07.11.2018 20:11, Pavel Stehule wrote:
> > st 7. 11. 2018 v 15:11 odesílatel Arthur Zakirov
> > <a.zakirov@postgrespro.ru <mailto:a.zakirov@postgrespro.ru>> napsal:
> > >     I think there is lack of necessary braces here for first if and second
> > >     else branches. This is true for both patches.
> > ?
> 
> I just meant something like this (additional "{", "}" braces):

We omit braces when there's an individual statement.  (We do add the
braces when we have a comment atop the individual statement, though, to
avoid pgindent from doing a stupid thing.)

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


pgsql-hackers by date:

Previous
From: Kyotaro HORIGUCHI
Date:
Subject: Re: Connection slots reserved for replication
Next
From: Surafel Temesgen
Date:
Subject: Re: pg_dump multi VALUES INSERT