Re: Patch: Implement failover on libpq connect level. - Mailing list pgsql-hackers

From Amit Kapila
Subject Re: Patch: Implement failover on libpq connect level.
Date
Msg-id CAA4eK1JmFOCtv26WxFH_AeF06QcYA8otNbvAorW5mC5nYef+qQ@mail.gmail.com
Whole thread Raw
In response to Re: Patch: Implement failover on libpq connect level.  (Alvaro Herrera <alvherre@2ndquadrant.com>)
List pgsql-hackers
On Tue, Oct 25, 2016 at 2:10 AM, Alvaro Herrera
<alvherre@2ndquadrant.com> wrote:
> Robert Haas wrote:
>
>
>> It is not obvious what it means if there are multiple ports but the
>> number doesn't equal the number of hosts.
>
> I think we should reject the case of differing number of elements and
> neither host nor port is a singleton, as an error.  The suggestion to
> ignore some parts seems too error-prone.
>

+1. I also think returning error is better option in above case.


-- 
With Regards,
Amit Kapila.
EnterpriseDB: http://www.enterprisedb.com



pgsql-hackers by date:

Previous
From: "Tsunakawa, Takayuki"
Date:
Subject: Re: [RFC] Transaction management overhaul is necessary?
Next
From: Kyotaro HORIGUCHI
Date:
Subject: Re: asynchronous execution