From: | Craig Ringer <craig(at)2ndquadrant(dot)com> |
---|---|
To: | Robert Haas <robertmhaas(at)gmail(dot)com> |
Cc: | "Tsunakawa, Takayuki" <tsunakawa(dot)takay(at)jp(dot)fujitsu(dot)com>, Mithun Cy <mithun(dot)cy(at)enterprisedb(dot)com>, Peter van Hardenberg <pvh(at)pvh(dot)ca>, Peter Eisentraut <peter_e(at)gmx(dot)net>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Patch: Implement failover on libpq connect level. |
Date: | 2016-11-19 01:23:43 |
Message-ID: | CAMsr+YGuaHDee-8dEn0iH4Vs28WngDxxrQkHJ_H4WSQXFoKf8w@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-jdbc |
On 19 November 2016 at 01:29, Robert Haas <robertmhaas(at)gmail(dot)com> wrote:
>> We can and probably should have both.
>>
>> If the server tells us on connect whether it's a standby or not, use that.
>>
>> Otherwise, ask it.
>>
>> That way we don't pay the round-trip cost and get the log spam when
>> talking to newer servers that send us something useful in the startup
>> packet, but we can still query it on older servers. Graceful fallback.
>>
>> Every round trip is potentially very expensive. Having libpq do them
>> unnecessarily is bad.
>
> True, but raising the bar for this feature so that it doesn't get done
> is also bad. It can be improved in a later patch.
Good point. Starting with the followup query method seems fine.
--
Craig Ringer http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services
From | Date | Subject | |
---|---|---|---|
Next Message | Claudio Freire | 2016-11-19 01:27:10 | Re: [WIP] [B-Tree] Keep indexes sorted by heap physical location |
Previous Message | Peter Geoghegan | 2016-11-19 01:05:20 | Re: [WIP] [B-Tree] Keep indexes sorted by heap physical location |
From | Date | Subject | |
---|---|---|---|
Next Message | Mithun Cy | 2016-11-20 16:08:12 | Re: Patch: Implement failover on libpq connect level. |
Previous Message | Robert Haas | 2016-11-18 17:29:19 | Re: Patch: Implement failover on libpq connect level. |