From: | Mithun Cy <mithun(dot)cy(at)enterprisedb(dot)com> |
---|---|
To: | "Tsunakawa, Takayuki" <tsunakawa(dot)takay(at)jp(dot)fujitsu(dot)com> |
Cc: | Robert Haas <robertmhaas(at)gmail(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-20 16:08:12 |
Message-ID: | CAD__Oujr9MLDjxdK7OM_uEkafv5M0iips5KW1rSY2zrdifaWyQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-jdbc |
On Fri, Nov 18, 2016 at 6:39 AM, Tsunakawa, Takayuki <
tsunakawa(dot)takay(at)jp(dot)fujitsu(dot)com> wrote:
>Typo. <literaL. -> <literal>, and "observering" -> "observing".
Thanks fixed.
> + {"target_server_type", "PGTARGETSERVERTYPE",
DefaultTargetServerType, NULL,
> + "Target-Server-Type", "", 6,
Thanks fixed.
> Please avoid adding another round trip by using a GUC_REPORTed variable
(ParameterStatus entry). If you want to support this libpq failover with
>pre-10 servers, you can switch the method of determining the primary based
on the server version. But I don't think it's worth supporting older
servers > at the price of libpq code complexity.
Currently there is no consensus around this. For now, making this patch to
address failover to next primary as similar to JDBC seems sufficient for me.
On next proposal of patch I think we can try to extend as you have proposed
>Please consider supporting "standby" and "prefer_standby" like PgJDBC.
They are useful without load balancing when multiple standbys are used for
HA.
I think they become more relevant with load-balancing. And, making it
usable when we extend this feature to have load-balancing makes sense to
me.
> I haven't tracked the progress of logical replication, but will
target_server_type be likely to be usable with it? How will
target_server_type fit logical > replication?
I tried to check logical replication WIP patch, not very sure how to
accomodate same.
--
Thanks and Regards
Mithun C Y
EnterpriseDB: http://www.enterprisedb.com
Attachment | Content-Type | Size |
---|---|---|
failover_to_new_master_v3.patch | application/octet-stream | 12.4 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2016-11-20 16:26:55 | Re: Mail thread references in commits |
Previous Message | Magnus Hagander | 2016-11-20 15:26:53 | Re: Mail thread references in commits |
From | Date | Subject | |
---|---|---|---|
Next Message | Tsunakawa, Takayuki | 2016-11-21 01:33:32 | Re: Patch: Implement failover on libpq connect level. |
Previous Message | Craig Ringer | 2016-11-19 01:23:43 | Re: Patch: Implement failover on libpq connect level. |