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 1jj1b4-000302-Ka for pgsql-general@arkaria.postgresql.org; Wed, 10 Jun 2020 14:20: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 1jj1b2-0000IH-Cj for pgsql-general@arkaria.postgresql.org; Wed, 10 Jun 2020 14:20:52 +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 1jj1b2-0000HW-4R for pgsql-general@lists.postgresql.org; Wed, 10 Jun 2020 14:20:52 +0000 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jj1az-00010U-CE for pgsql-general@postgresql.org; Wed, 10 Jun 2020 14:20:51 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 1292B5CE; Wed, 10 Jun 2020 10:20:47 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Wed, 10 Jun 2020 10:20:47 -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=B HSeYtQUwBNNoX+rBb/D1UJHWzPtH6J+mh0iCN0dKx0=; b=UGjsSWhgQ0FGPHIDJ DJif5oF9v5nqorDutkYmoTAiZ3eIpX30WGWxGYC1dwfeHS3kS9LeJDQ88xxQQUI7 BnaKRc4mixQDKgwpnBKa2liTJHJNZf8f8gkm1EBR2Edv1XDeJYZzOXSzgOhrpelm IbWMs1F/w4nKmYLomDdsU/xQ2OKq5KdIDAps7yQKVw9oCqA/VTt4XtZBFmzLStch GUU526XAt7eqd+cjXw2zm6QnLtFdpzL2OUTt5eb6c9vh3P92C5vOGyyG8/6b6C9G iSwa4clPTI8tpdPIDbF3+RvpzglNEGEEseMQbQbH0dAqM4KWXqLzBJJjLmP8Czng JRxAQ== 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=fm3; bh=BHSeYtQUwBNNoX+rBb/D1UJHWzPtH6J+mh0iCN0dK x0=; b=dlzXfxptfPVfm+jLGZgNFz4f7xAVOSsU0gnYqtLEWG/r/GKUwBmRr0txc mGZb8nEM3xoHGBHFfhxlZPGcjdXM68XZxsCjM543z5WDSpWk2WiLEWQEZ7BcQZyT DbYt44+zW8V63UlBiEKnKEosojaC7uNnGGwCm8XgtxqeYio1NK9/dNQ/tszKrrvM ClPPaoNao3wUT5C6SuwQfHrJ4e7AEk+DWKykPNdVBfHO3WkII6BP0uYXP7ZxO3kJ wgVQ65cr2jn7zvKJVauolBboLk8UTTweJS/2Q272WKvvxiG0BP21WV/ym75q7sND C9MxTzPfxRk9BnD3gzRQ80y5xkwfw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrudehiedgjeekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefuvfhfhffkffgfgggjtgfgsehtje ertddtfeejnecuhfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhk lhgrvhgvrhesrghklhgrvhgvrhdrtghomheqnecuggftrfgrthhtvghrnhepteejvdetff ejuedvleeifeefheeutdfhgfdvhffhhfekvdduveegvdejudefgfevnecukfhppeejhedr 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 27837328005A; Wed, 10 Jun 2020 10:20:46 -0400 (EDT) Subject: Re: [HELP] Reset postgres server To: Praveen Kumar K S , pgsql-general@postgresql.org References: From: Adrian Klaver Message-ID: <9f9e27c8-4f75-8d33-c6be-8e06d86d70a1@aklaver.com> Date: Wed, 10 Jun 2020 07:20:45 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 6/10/20 5:33 AM, Praveen Kumar K S wrote: > Hello, > > I have a master and slave setup running and sometimes we have to do a > complete refresh on dev environments. How can I reset postgres server so > that it wipes out everything including WAL ? So that I configure > master/slave streaming replication again from scratch ? TIA. Are both servers part of the dev setup? If so would deleting the content of $PGDATA and then doing an initdb on it work? To make above easier I would keep a copies of the *.conf files where you could copy them back into $PGDATA after the initdb. > > -- > *Regards, > > * > *K S Praveen Kumar > > * -- Adrian Klaver adrian.klaver@aklaver.com