Skip site navigation (1) Skip section navigation (2)

Re: Patch: Implement failover on libpq connect level.

From: Mithun Cy <mithun(dot)cy(at)enterprisedb(dot)com>
To: Catalin Iacob <iacobcatalin(at)gmail(dot)com>
Cc: "Tsunakawa, Takayuki" <tsunakawa(dot)takay(at)jp(dot)fujitsu(dot)com>, Robert Haas <robertmhaas(at)gmail(dot)com>, Craig Ringer <craig(at)2ndquadrant(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-24 12:16:48
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackerspgsql-jdbc
On Wed, Nov 23, 2016 at 10:19 PM, Catalin Iacob <iacobcatalin(at)gmail(dot)com>
   On Tue, Nov 22, 2016 at 8:38 AM, Tsunakawa, Takayuki <
tsunakawa(dot)takay(at)jp(dot)fujitsu(dot)com> wrote:
 >> If you want to connect to a server where the transaction is read-only,
then shouldn't the connection parameter be something like
 >>"target_session_attrs=readonly"?  That represents exactly what the code

 >FWIW I find this to be a reasonable compromise. To keep the analogy
 >with the current patch it would be more something like

I have taken this suggestion now renamed target_server_type to
target_session_attrs with possible 2 values "read-write", "any".
May be we could expand to "readonly" and "prefer-readonly" in next patch
proposal. Attaching the patch for same.
Thanks and Regards
Mithun C Y

Attachment: failover-to-new-writable-session-05.patch
Description: application/octet-stream (12.4 KB)

In response to


pgsql-hackers by date

Next:From: Etsuro FujitaDate: 2016-11-24 12:45:40
Subject: Re: Push down more full joins in postgres_fdw
Previous:From: Rushabh LathiaDate: 2016-11-24 12:12:22
Subject: Re: Gather Merge

pgsql-jdbc by date

Next:From: Jorge SolórzanoDate: 2016-11-25 04:44:37
Subject: Versioning policy PgJDBC - discussion
Previous:From: Catalin IacobDate: 2016-11-23 16:49:29
Subject: Re: Patch: Implement failover on libpq connect level.

Privacy Policy | About PostgreSQL
Copyright © 1996-2018 The PostgreSQL Global Development Group