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 1jfYKM-0005fK-IZ for pgsql-general@arkaria.postgresql.org; Mon, 01 Jun 2020 00:29: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 1jfYKL-00078r-Ad for pgsql-general@arkaria.postgresql.org; Mon, 01 Jun 2020 00:29:17 +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 1jfYKJ-00078k-CJ for pgsql-general@lists.postgresql.org; Mon, 01 Jun 2020 00:29:17 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jfYKE-0005a6-Qd for pgsql-general@postgresql.org; Mon, 01 Jun 2020 00:29:14 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 01A615C008D; Sun, 31 May 2020 20:29:08 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Sun, 31 May 2020 20:29:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm3; bh=H HuE5JAn9+vu4iBZGzrhk7wc0+dmUXaguUQlNpYWOXU=; b=NU+vzxBaxqjyuMKIa nNA1OrGg3fQbqn0Dbc9fDzdNhHdMduFS8t38Yim4jWBLbw9GIWg0UHaujbNPq8bJ HRKVSF0zyO2oPCW4NYj2MMzAJYXJnVIT+enk//ya52d7qwc2/qeV2ewH/Q3fvZzK eHd10eJmdYuD/Y4laJ7ERKba5vPKo7evBtCNujEF0Ob1+05zETeZxeO3EsSrrxcx l6x1Lb47W77P19Ymb7sA+rP6VGppu3GlCF3D7aGvLOF0ljXOubW5T6+gfZET8gAU WlV7thy33TQ2uXeXG8FNx0Ypuuro2NhwlXq9r9o6tA9/wRu7N9iYdz/NlzvOMtI6 FZTCg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=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=HHuE5JAn9+vu4iBZGzrhk7wc0+dmUXaguUQlNpYWO XU=; b=W5X9nnMS2dNN+kd2mMrHqOXigG1jLkFJMysE9s9KcW0ZD0SlrPbDNcX7g uqn/n8DXN7U+spxJZcR7Bb7SxlSyXVCcD26UQ3IuRvwniSY+FhF0d1lMPJ7Bd7Iz E61MIpI7zo4hhQrGp/YB90CPLMlOyuz2aH5EyMqevdUIPxWEIwYrJTn57gpNC0Q6 tH/QdOql9NrdKKGoRiqYiyBlesxAIYaCv87/QDLjBQ3UN/vxmmvkOHUCjYN/l6YL GCJKgK0rtn49t7+8HVb+erG9KaPavJ0ZBiQFLmhZ9fJP7gGU1dC4lUa5MhAerS9y QyX9ys/AGUMMp7kcviI327+o5eGzQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrudefgedgfedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefuvfhfhffkffgfgggjtgfgsehtke ertddtfehhnecuhfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhk lhgrvhgvrhesrghklhgrvhgvrhdrtghomheqnecuggftrfgrthhtvghrnhepiefhffdugf egveetvdeghfevleefjedvfedtledvgfevhfefvdfhhfeiteehteeinecukfhppeejhedr udejvddrhedrvdefudenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrih hlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhm X-ME-Proxy: Received: from [192.168.1.3] (75-172-5-231.tukw.qwest.net [75.172.5.231]) by mail.messagingengine.com (Postfix) with ESMTPA id EE95C30614FA; Sun, 31 May 2020 20:29:06 -0400 (EDT) Subject: Re: How to start slave after pg_basebackup. Why min_wal_size and wal_keep_segments are duplicated To: Andrus , pgsql-general References: <26EC9619620649D1B55C9C95811E4ADB@dell2> <16e57e3f-5c26-fd55-d42a-f030c8550952@aklaver.com> <102C5FA16F1549659B393B6A824B561F@dell2> <698dbad1-e3b2-f13a-8e97-8ce01efed516@aklaver.com> <246B62BD5BB44DCE8AEB15CA9723CDCE@dell2> From: Adrian Klaver Message-ID: <16629afe-a53c-76e4-ef1e-a0a5ceba2d71@aklaver.com> Date: Sun, 31 May 2020 17:29:05 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.1 MIME-Version: 1.0 In-Reply-To: <246B62BD5BB44DCE8AEB15CA9723CDCE@dell2> Content-Type: text/plain; charset=windows-1257; 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 5/31/20 2:43 PM, Andrus wrote: > Hi! > >> In addition to my most recent questions: >> What are you trying to achieve? > > I want to create  hot standby async server using > /etc/init.d/postgresql stop > mv /var/lib/postgresql/12/main /var/lib/postgresql/12/mainold > pg_basebackup --write-recovery-conf -D /var/lib/postgresql/12/main I don't see where the base backup is being taken from just where it is going. > chmod --recursive --verbose 0700 /var/lib/postgresql/12/main > chown -Rv postgres:postgres /var/lib/postgresql/12/main > /etc/init.d/postgresql start > >> In other words why do a pg_basebackup if you have a standby receiving >> WALs? > > I dont receive WALs. If you are doing binary replication then you are receiving WALs. It just a matter of whether you are streaming them or shipping them over complete. > > Andrus. -- Adrian Klaver adrian.klaver@aklaver.com