From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Sonam Sharma <sonams1209@gmail.com>
To: Julien Rouhaud <rjuju123@gmail.com>
Cc: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: Replication issue
Date: Sat, 18 Apr 2020 09:24:32 -0700
Message-ID: <92e363af-222a-ca4a-4fd4-56d213a9c69f@aklaver.com> (raw)
In-Reply-To: <CAM-M3T=iMOYVOTvcc_E16sQOqer8=xfC-sayY52f6eD3YLw+9Q@mail.gmail.com>
References: <CAM-M3T=kFZ+3UGbYxmmXoKjg1oMuuuHkSQjbKc-xYrsNRGokqw@mail.gmail.com>
<f1140aa2-35e8-d5a8-62e9-db358708d61d@aklaver.com>
<CAOBaU_Yao5XoSPxx6HoZfJMpXhaqd+3e3xO_mzEbbEmvT8bNjA@mail.gmail.com>
<CAM-M3T=iMOYVOTvcc_E16sQOqer8=xfC-sayY52f6eD3YLw+9Q@mail.gmail.com>
On 4/17/20 7:47 AM, Sonam Sharma wrote:
> Yes, you are right. It's for connection failover from application end. I
> have set up db replication using repmgr. Version : 9.5
>
Can you reach the database crowd at host 172.29.195.216:50001 using psql
or some other client?
>
>
> On Fri, Apr 17, 2020, 8:15 PM Julien Rouhaud <rjuju123@gmail.com
> <mailto:rjuju123@gmail.com>> wrote:
>
> On Fri, Apr 17, 2020 at 4:02 PM Adrian Klaver
> <adrian.klaver@aklaver.com <mailto: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;
> > >
> <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.
>
--
Adrian Klaver
adrian.klaver@aklaver.com
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: adrian.klaver@aklaver.com, sonams1209@gmail.com, rjuju123@gmail.com
Subject: Re: Replication issue
In-Reply-To: <92e363af-222a-ca4a-4fd4-56d213a9c69f@aklaver.com>
References: <CAM-M3T=kFZ+3UGbYxmmXoKjg1oMuuuHkSQjbKc-xYrsNRGokqw@mail.gmail.com> <f1140aa2-35e8-d5a8-62e9-db358708d61d@aklaver.com> <CAOBaU_Yao5XoSPxx6HoZfJMpXhaqd+3e3xO_mzEbbEmvT8bNjA@mail.gmail.com> <CAM-M3T=iMOYVOTvcc_E16sQOqer8=xfC-sayY52f6eD3YLw+9Q@mail.gmail.com> <92e363af-222a-ca4a-4fd4-56d213a9c69f@aklaver.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox