Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gBoMl-0001Ie-HB for pgsql-general@arkaria.postgresql.org; Sun, 14 Oct 2018 21:56:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gBoMj-0004AC-Po for pgsql-general@arkaria.postgresql.org; Sun, 14 Oct 2018 21:56:01 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gBoMj-0004A5-HA for pgsql-general@lists.postgresql.org; Sun, 14 Oct 2018 21:56:01 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gBoMh-00064P-MM for pgsql-general@lists.postgresql.org; Sun, 14 Oct 2018 21:56:01 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 5DCB321DC7; Sun, 14 Oct 2018 17:55:58 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Sun, 14 Oct 2018 17:55:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm2; bh=SX2iKbEifwvJz302utKYtEs70nT vyBIwKlvnFNKINIo=; b=B58VjESF+PZDfHU+cZMaiHepXUt9eU/gkgRcX/kHoCA ZuOcUoEgGoZvddWFLWss2DxLOCNrVGElJndE8z/P1JGC6IDs93Jrwx4At5P2EK7g 0SBKpoqCA6PHnsdQugs8aQWpIM57CLqB5g+a6Hm3ZrIq87sAZUmZezQ/+lCQ6HgO Z3OCyu17Hgn4YNy8xVA5lpx4wUio+qu26bDViPnTQIdFU1jwL6QlgWPc9GVpWYCK 65ktEpr+E6hN8wQlSvQE6mP5fyMEdHj67r3GBSA7hQNHHrW5cB/sb37mw6fQo8Mq FalY4AE+eXmjOd/ILb26TEK7ITvFGhNR/GIs8iPXuOA== 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=SX2iKb EifwvJz302utKYtEs70nTvyBIwKlvnFNKINIo=; b=SVNCQAHO4AiIopZAW7btN+ 1XjCX5XuJhxGERbDh0kopDsdU1OnrNtxjmg4HFZwSnYBj0i1xTJQGqFPNsrYEO/B 8Z8l1R0eeqNbrSYzSqdqgja456f4DLBAMLfDG4558bmpbI7foNtXI1nV5yIi7lbU VcowaxzcF9dSShqiOsa98QO/zfVfj2ZSZU3i2NDVATx1n7SmQcVe8AgoPV5kFfZO fzHw1g9dcuZyinHl//ZLj+byfClXSIz8VUqphuSGARyf9ojsOa3a22qH2yjjYitu F5aEaaiRs5T6VFPq48utJpKfHIo9JsZUuVtzWgq9L9BV0ktOPPVrwfYsRN1bSvew == X-ME-Sender: X-ME-Proxy: Received: from intern.anarazel.de (c-71-202-120-112.hsd1.ca.comcast.net [71.202.120.112]) by mail.messagingengine.com (Postfix) with ESMTPA id C4D8AE40D1; Sun, 14 Oct 2018 17:55:57 -0400 (EDT) Date: Sun, 14 Oct 2018 14:55:56 -0700 From: Andres Freund To: Ravi Krishna Cc: Vijaykumar Jain , bhargavpostgres@gmail.com, pgsql-general@lists.postgresql.org Subject: Re: Slot issues Message-ID: <20181014215556.dpdadv5zn7cdkvpx@alap3.anarazel.de> References: <20181014202042.gi6o3kitjvczc5ym@alap3.anarazel.de> <20181014211054.wxsekk3lqmdlacos@alap3.anarazel.de> <36CCE7FA-BD81-409F-AE79-224C1FB68053@aol.com> <81D72671-F26F-4E02-916C-3F85EB67462E@aol.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <81D72671-F26F-4E02-916C-3F85EB67462E@aol.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, On 2018-10-14 17:52:30 -0400, Ravi Krishna wrote: > The best part in Db2 HADR is that when the standby is catching up with the master after a long time, it will > start from the last LSN and fetch it from the primary WAL directory (active logs ). If not found, it will look for it > in the archived logs and start applying from there until the current > point. Uh, it works precisely the same in postgres. > No rep slot business. You're not forced to use slots. Their purpose is to allow to force the primary to keep necessary resources around. Which also allows to get rid of the archive in some setups. Greetings, Andres Freund