Re: Replication issue

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: Sonam Sharma <sonams1209(at)gmail(dot)com>, pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Replication issue
Date: 2020-04-17 14:02:04
Message-ID: f1140aa2-35e8-d5a8-62e9-db358708d61d@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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.

--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2020-04-17 14:10:51 Re: Could not resolve host name error in psycopg2
Previous Message Rob Sargent 2020-04-17 13:48:59 Re: performance of first exec of prepared statement