Re: [HACKERS] Patch: Implement failover on libpq connect level.

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Kevin Grittner <kgrittn(at)gmail(dot)com>
Cc: Mithun Cy <mithun(dot)cy(at)enterprisedb(dot)com>, Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com>, Peter van Hardenberg <pvh(at)pvh(dot)ca>, "pgsql-jdbc(at)postgresql(dot)org" <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: [HACKERS] Patch: Implement failover on libpq connect level.
Date: 2016-11-16 15:13:14
Message-ID: CA+TgmoYDF_iiQNU4V5Vyrs3vFgnozttp+X+=QphvcSoqFWw8bA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-jdbc

On Wed, Nov 16, 2016 at 9:02 AM, Kevin Grittner <kgrittn(at)gmail(dot)com> wrote:
> [moving this branch of discussion to pgsql-jdbc]
>
> On Tue, Nov 15, 2016 at 10:31 PM, Mithun Cy <mithun(dot)cy(at)enterprisedb(dot)com> wrote:
>
>> JDBC is sending "show transaction_read_only" to find whether it
>> is master or not.
>
> If true, that's insane. That can be different on each connection
> to the cluster and can change tens of thousands of times per second
> on any connection!

I don't think that's insane. The command is only being issued at
connection startup, and will only be different on different
connections if it's been configured that way.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2016-11-16 15:16:31 Re: Re: [COMMITTERS] pgsql: Build HTML documentation using XSLT stylesheets by default
Previous Message Tom Lane 2016-11-16 14:46:16 Re: Re: [COMMITTERS] pgsql: Build HTML documentation using XSLT stylesheets by default

Browse pgsql-jdbc by date

  From Date Subject
Next Message Catalin Iacob 2016-11-16 17:00:42 Re: Patch: Implement failover on libpq connect level.
Previous Message Kevin Grittner 2016-11-16 14:02:48 Re: [HACKERS] Patch: Implement failover on libpq connect level.