Re: Patch: Implement failover on libpq connect level.

From: Victor Wagner <vitus(at)wagner(dot)pp(dot)ru>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Cc: Thom Brown <thom(at)linux(dot)com>
Subject: Re: Patch: Implement failover on libpq connect level.
Date: 2016-01-24 19:46:32
Message-ID: 20160124224632.212d04b8@wagner.wagner.home
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-jdbc

On Sun, 24 Jan 2016 15:30:22 +0000
Thom Brown <thom(at)linux(dot)com> wrote:

в
> Okay, I've tested this again with additional logging. Again, I'm just
> running "psql -p 5531 postgres", which connects to a standby. This
> immediately exits psql, and the logs show:

> 2016-01-24 15:04:59.886 GMT - thom - postgres LOG: 00000: statement:
> SELECT pg_catalog.pg_is_in_recovery()
> This shouldn't be checking whether it's a standby. I also noticed
> that with:

This is, of course, incompatibility with previous behavior. Probably,
I should modify this patch, so it would imply readonly flag if only one
host/port pair is specified in the command line.

Now it does check for standby regardless of number of hosts specified.

--
Victor Wagner <vitus(at)wagner(dot)pp(dot)ru>

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Victor Wagner 2016-01-24 19:53:51 Re: Patch: Implement failover on libpq connect level.
Previous Message Peter Eisentraut 2016-01-24 19:05:20 Re: Proposal: Trigonometric functions in degrees

Browse pgsql-jdbc by date

  From Date Subject
Next Message Victor Wagner 2016-01-24 19:53:51 Re: Patch: Implement failover on libpq connect level.
Previous Message Álvaro Hernández Tortosa 2016-01-24 19:04:51 Re: Merge pgjdbc-parent-poms project into pgjdbc please