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 1jYykj-0000wM-KW for pgsql-general@arkaria.postgresql.org; Wed, 13 May 2020 21:17:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jYykg-0005nj-Si for pgsql-general@arkaria.postgresql.org; Wed, 13 May 2020 21:17:18 +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 1jYygU-0002rG-0d for pgsql-general@lists.postgresql.org; Wed, 13 May 2020 21:12:58 +0000 Received: from ns76.e-blokos.com ([51.79.78.76] helo=node76.e-blokos.com) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jYygO-0006Ga-Nd for pgsql-general@lists.postgresql.org; Wed, 13 May 2020 21:12:56 +0000 Received: from [127.0.0.1] (localhost.localdomain [127.0.0.1]) by node76.e-blokos.com (8.15.2/8.15.2) with ESMTP id 04DLCkPj017339 for ; Wed, 13 May 2020 21:12:48 GMT Subject: Re: Reuse an existing slot with a new initdb To: pgsql-general@lists.postgresql.org References: <5f198805-8fd4-b49b-4046-e98fb80dea74@e-blokos.com> <48699aec-7736-6b8a-cd92-fe6d93db6a78@e-blokos.com> <48434f500ee2bf9572e6bbff143be073114f8c42.camel@cybertec.at> From: live-school support Message-ID: <779da3eb-6762-dbb8-3019-8c8515bf7397@live-school.net> Date: Wed, 13 May 2020 14:12:45 -0700 User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <48434f500ee2bf9572e6bbff143be073114f8c42.camel@cybertec.at> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Best Regards LIVE-SCHOOL FOUNDATION http://www.live-school.net infos@live-school.net On 5/13/2020 1:24 PM, Laurenz Albe wrote: > On Wed, 2020-05-13 at 06:18 -0700, Support wrote: >> On 5/8/2020 1:51 PM, Support wrote: >>> I normalized my replislots with the name of my nodes. >>> I have 2 options in my recovery script that tries first pg_basebackup >>> to recover and sync the hot standby, but unfortunately big DB fails >>> sometimes due >>> to very slow or unstable network. So my second option is to completely >>> make a new inidb and import an sql file from pg_dumpall master as it >>> takes less bytes once compressed. But I'm facing an issue with the >>> slot complaining (obviously) about the ho standby node that does not >>> match the slot identifier. So my question is simple, is there a way to >>> reinitialize the slot to not renew the identifier with the new hot >>> standby initdb? >> No one has an answer to my question? > That may be because your question is hard to understand. > > You cannot create a standby server using "pg_dumpall", so it is > unclear what exactly you are doing here. > > Also, it is not clear what error message you get. > > Yours, > Laurenz Albe Thanks Laurenz, I didn't recal that it was not possible to create a hot standby with a fresh new install and pg_dumpall :(. only pg_basebackup or an exact copy of the data folder can do it right? is the reason technical or else?