Re: Replication issue - Mailing list pgsql-general

From Julien Rouhaud
Subject Re: Replication issue
Date
Msg-id CAOBaU_Yao5XoSPxx6HoZfJMpXhaqd+3e3xO_mzEbbEmvT8bNjA@mail.gmail.com
Whole thread Raw
In response to Re: Replication issue  (Adrian Klaver <adrian.klaver@aklaver.com>)
Responses Re: Replication issue
List pgsql-general
On Fri, Apr 17, 2020 at 4:02 PM Adrian Klaver <adrian.klaver@aklaver.com> wrote:
>
> On 4/17/20 6:31 AM, Sonam Sharma wrote:
> > I have setup db replication. And added below parameter in jdbc file .
> > The connection is failing and it's throwing error like db doesn't exist
> > on secondary server.
> >
> >
jdbc:postgresql://<primaryhost>:50001,172.29.195.216:50001/crowd?targetServerType=master&reWriteBatchedInserts=true
> > <http://172.29.195.216:50001/crowd?targetServerType=master&reWriteBatchedInserts=true>
> >
> > .PSQLException: FATAL: database ",172.29.195.216
> > <tel:+17229195216>:50001/crowd" does not exist
> >
> >
> > Can someone help on this issue?
> >
>
> Set up replication using what?
>
> The URL above does not look correct to me. Pretty sure the ',' does not
> belong there.

This was probably intended to be the "connection failover" feature
(https://jdbc.postgresql.org/documentation/head/connect.html).  I'm
wondering if the issue is just that the driver is too old to support
that, but I have no idea when this was introduced in jdbc.



pgsql-general by date:

Previous
From: Achilleas Mantzios
Date:
Subject: Re: easy way to acquire height / width from images (PNG, JPEG) storedas bytea?
Next
From: Paul Förster
Date:
Subject: Re: Could not resolve host name error in psycopg2