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 1kQQrX-00053t-0V for pgsql-general@arkaria.postgresql.org; Thu, 08 Oct 2020 08:01:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kQQrV-0007R2-Qc for pgsql-general@arkaria.postgresql.org; Thu, 08 Oct 2020 08:01:17 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kQQrU-0007Qk-FM for pgsql-general@lists.postgresql.org; Thu, 08 Oct 2020 08:01:17 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kQQrN-0002Ql-Nt for pgsql-general@lists.postgresql.org; Thu, 08 Oct 2020 08:01:15 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 503B45C0215; Thu, 8 Oct 2020 04:01:08 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Thu, 08 Oct 2020 04:01:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm2; bh=4qoRLTlyFIiwJuLbyZI7jqMuHdO zCM2SPpQ07ZUKe2k=; b=wVJr1cMzFDLbhJU0Be/POJJWs9ovEqxmtYgKjNHhRvO kBWDACctwkCbEWFQefV2q0803hn1Ada5AuOQRpnjx7JClRmlqgLk7vp7955yww3v OiNMokeeJDDVQpENG2e9vLy3jtkjQY/DLIXuZOVNrLiI1jaZC29hgwavJJFBDzig 0Uftpnmu0B13uoaq4NMxBd8RFLDxmwxzCyYQ6AcdDxhve/Hsi+VOsCD1ZmFpr082 +Vzp9iRSvWT/3HAqv6a4ef+u62oXZsglb8X+X5MN1/Zg5eNo/pyotPnki/QOfeJF HFzllrCUSrqQmTScxQspSm9ng8zBoV9Rab/L9j1EZ6w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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=fm1; bh=4qoRLT lyFIiwJuLbyZI7jqMuHdOzCM2SPpQ07ZUKe2k=; b=f+ZSuKFwXh+lGoAPDtfy7y DRhlCPcpUYHPe4HAfIpWalQaaqBvC+siaLWIdWRHn/sNMJ/9tqcrWCCx4RHARqOE dWdYM+ifRUXDK/Ek8ikKULckA9/J6JZqFGxnftpD2BPoB+CFY9O+92V0zdzFPeYn qNbBcxIv8fMQTcQWb4hvjPQAXG2PhHWPTG/oJKOcdYrXhGKoKkb0HBFLstNYb51i Dimdtc85//TvnG9c5uwoxZC5uda+z5JhHUTDI7AHK93AggskOcVQARbSh6QE2M4Y NTOE0fTkWpLWKsNuIok+zhOZPug7/UwK9nTUfJw7Vl0ZwkPQYeMaXKnx/r8JflLw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrgeekucetufdoteggodetrfdotffvucfrrh hofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgenuceurghi lhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnegfrhhluc fvnfffucdljedtmdenucfjughrpeffhffvuffkfhggtggujgesghdtreertddtvdenucfh rhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprghquhhivg hrrdighiiiqeenucggtffrrghtthgvrhhnpedvgeduuefhtdeuleettdevjeehheeiveeu ieegleetgeeljeelieeuieehgeevhfenucfkphepudduuddruddtvddrudektddrudekhe enucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmihgt hhgrvghlsehprghquhhivghrrdighiii X-ME-Proxy: Received: from paquier.xyz (ee0822lan1.rev.em-net.ne.jp [111.102.180.185]) by mail.messagingengine.com (Postfix) with ESMTPA id 0CF093280060; Thu, 8 Oct 2020 04:01:06 -0400 (EDT) Date: Thu, 8 Oct 2020 17:01:02 +0900 From: Michael Paquier To: Srinivasa T N Cc: PostgreSQL General Subject: Re: Both type of replications from a single server? Message-ID: <20201008080102.GE3457@paquier.xyz> References: <20201008064923.GD3457@paquier.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="lIrNkN/7tmsD/ALM" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --lIrNkN/7tmsD/ALM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Oct 08, 2020 at 01:25:14PM +0530, Srinivasa T N wrote: > For streaming replication, I need to set wal_level to replica in A whereas > for logical_replication we need to set wal_level to replica in the same A > server. So, was wondering how to go about? A logical replica needs wal_level = logical, a setting that also allows to do streaming replication for a physical replica. But the opposite is not true, as using wal_level = replica will not work for logical replicas. So, assuming that you want to have both logical and physical replicas that replicate from the same source server, you need to set wal_level to logical on the primary server because it is a system-wide configuration. -- Michael --lIrNkN/7tmsD/ALM Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAl9+xz4ACgkQnvQgOdby QH2OYg//aW/Pi3wtuE6vCk78wXX9zyRH/1RSutIcRqXDLPX5M+w/bilN6JbJ/L/X lIELGS2ls1wl5IPVE3KkUcuXpx+nwsHqkN7TG3b03WoiR1pVYmwWJNPQR4ye4yhz 4BQFO8ysW1P421cucX08NAfw2g2BMJsijQbl1tB7EKoXd4CBy2+JAe2px9m9oUab pCk6Argy/XV49c+rJYvBs/3tPJ2JDtN10PXiESXB8aW501kpVDkqweOeoztC6Hr+ LFnjtsu00fSVZmtd9oviz6yv16CsTCroxXBJnfoumLqkNJiO2Uh1jHAqIWbpYknd 0/N1tSa6rJpcLSoCgWsA3Am0am1TklfZp64PM5FEx9bh1SwmEZhjfSWh7gOwQneo rs0ZBqSDNxg4cJu55cvSj4ooDonfW5zlxZMNtnAn5o/3Avfg1PB+IBiqFKdyaix2 quKcUFcKmCuErLro7VSK23+KgslDWzuPTn5jneD6S1eIUy3IX2bnrNgdgEboY5rs l15LRHaOI0V2hTsVZKhq62mSuDeKd7PW4V2VR0Pd5dtU3276n5hYze83ugZqWNMZ mRZ+GxmZKBkj0qgOVo4HmJ57b0Fo8/m/XEfsHXhK1KTKZ5KP4Kz1yRQctCkxDeFq TjLDoqCZr4IDbHH0wyOhe+wj5vyLzJjw95/roF7l8psgsvqRcK8= =LwRk -----END PGP SIGNATURE----- --lIrNkN/7tmsD/ALM--