Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jPqGz-0002y7-J7 for pgsql-general@arkaria.postgresql.org; Sat, 18 Apr 2020 16:24:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jPqGv-0000Mx-Fs for pgsql-general@arkaria.postgresql.org; Sat, 18 Apr 2020 16:24:49 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jPqGt-0000Mp-HX for pgsql-general@lists.postgresql.org; Sat, 18 Apr 2020 16:24:49 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jPqGj-0007Zm-Df for pgsql-general@postgresql.org; Sat, 18 Apr 2020 16:24:46 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id D3D236C6; Sat, 18 Apr 2020 12:24:33 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Sat, 18 Apr 2020 12:24:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm2; bh=r MeGNd76G46LdpCwPoWauwbDpwjyhosoAq573YxLiHM=; b=sP8J51JfXldNpNhCw tbzmAUOryj8DCBhNS8up44jHmN3xgrIw9Ir4zGSrxbG3Vbdwk32W747oj3OW3xk0 6SFlakM4hFJ7zxbhofjAUxVdp9109GKZsjCgvo3/frgqECksLdXGBQV7bIm5xRTG P1bjw2oLo2fDMwUv+ngkDi45M3Crj0V0G173ioj0nVhfUuXYZ2LW9U6V8iCLairo +Mno/U2r6V9bDOg7AN326O8HLZ+Cg9z0tssLBll+ePwd5KRZ4ROoviLvPCzt4kZc LutMBAe4MuHiKaw75bPksoL6xv0F1xDOUfvuys1juIFGCNbb2Y/AgMY2dSbDoira FS48w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=rMeGNd76G46LdpCwPoWauwbDpwjyhosoAq573YxLi HM=; b=x6R5v/PEmZtFhyiDQL2NP0z5v2w32Yg/rt9yKizZA0ShIoVL24Agd4HeC 0h46wVu6/WCYzmst2SrxeiDHURvUc83AG+nlL456DqwvOwbIgYPsBK6oKTjh4Cqq +d2pcZNaXs6fwaWXVhweaFol3YFfpSCH7fJg87nKoOYgtdkpsMW82a+sXceDZoeC ArskdxXVniE0182SU7KttpEtGkT4lPdZ/OUht4gE2kbT6StqvtznoHExQGW6e+WW Fq6pR/EFepTBRSXwFXtfuJ1I4CaZfIFkQ+t+zneBDK4f8S7JbDF40tm5mtNTY4kl Z7mhvUoqfCot9kkB3SK9DaFJAY9Ig== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrfeelgddutdefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhkffffgggjggtgfesthekredttdefjeenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucffohhmrghinhepudejvddrvdelrdduleehrddvudeipdhpohhsthhgrhgvshhq lhdrohhrghenucfkphepleejrdduudefrddvtdejrddufeeknecuvehluhhsthgvrhfuih iivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghnrdhklhgrvhgvrhes rghklhgrvhgvrhdrtghomh X-ME-Proxy: Received: from [192.168.1.10] (97-113-207-138.tukw.qwest.net [97.113.207.138]) by mail.messagingengine.com (Postfix) with ESMTPA id D53003060064; Sat, 18 Apr 2020 12:24:32 -0400 (EDT) Subject: Re: Replication issue To: Sonam Sharma , Julien Rouhaud Cc: pgsql-general References: From: Adrian Klaver Message-ID: <92e363af-222a-ca4a-4fd4-56d213a9c69f@aklaver.com> Date: Sat, 18 Apr 2020 09:24:32 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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 > wrote: > > On Fri, Apr 17, 2020 at 4:02 PM Adrian Klaver > > 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://:50001,172.29.195.216:50001/crowd?targetServerType=master&reWriteBatchedInserts=true > > > > > > > > > > > .PSQLException: FATAL: database ",172.29.195.216 > > > :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