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 1jYxvW-0007pI-Kf for pgsql-general@arkaria.postgresql.org; Wed, 13 May 2020 20:24:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jYxvV-0000Qf-C4 for pgsql-general@arkaria.postgresql.org; Wed, 13 May 2020 20:24:25 +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 1jYxvV-0000QX-0O for pgsql-general@lists.postgresql.org; Wed, 13 May 2020 20:24:25 +0000 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jYxvS-0007mB-J7 for pgsql-general@postgresql.org; Wed, 13 May 2020 20:24:24 +0000 Received: by mail-wr1-x444.google.com with SMTP id 50so1056565wrc.11 for ; Wed, 13 May 2020 13:24:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=S+c1qhjhnYNaHsJXIE4CQfvbJViuR54Pgx6i2N1oojQ=; b=dg67L0kKCoq7byqd4zDyv8x86XiAK4uD3V8IEdHKF6UK8M0K1KFbI4sot9qXCIBhy6 FQpF4TvbP7vKFDPfO497iKCLGkzNMlS6hV25qz8r2L5V7cMRxbll/HrLsSYpW07zJlNN Aldo5Ys4AtrBYWIihXiylDMuC8kBb4GPhl91GTUEm0paXqehuGc6NGk8KUj/r5EuVeYN 42ZYTAaI75+RnPB+be5ZK8GtT/e1h7VxxYiAdB8j9emptvrdnfCUArrbCJaNwSnEvoua z2XgA72wb3sFt6VngKkQ0qDdVePZZN3HidD/chgejNdt0hq4f4ywRwGX6jqVfLl88MHi r5NA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=S+c1qhjhnYNaHsJXIE4CQfvbJViuR54Pgx6i2N1oojQ=; b=NhxmmSvHi2LbEvoOyHp90XKpo2wdgT5IuUJoVHMt8LAFZ3/8uAokVy2A9ogtESr524 aGwYTiwm9qCHySSB3Cov+jL4VMB1Q1aIngEIjKIo4NUH7fHefCiMyp+3KTsVVswNiA/P x4FAkp6B+ef1+bR9yOdXplVA6En4dOX7qKJqPZ8U5jOaeR+Y2KTvvbFJKzvc9vYgGeER y91BGQpHSGCA7zKENUWL2iQhyi+SWCM9qU9RkHlcYBzkWtz+OffeZ9SstrvHFyo5tO3h D75p4K/ePL7zlWPf8ehI39QAwjX68IA9AYJSGE6npWQ3zIIwFRjbK0laEl9f7p/U4q+p SZPw== X-Gm-Message-State: AOAM533CXSQv27rHlPc87kXVvJ8YZnQI6rZWExJQbgMsi/TBWWQIavaA 5cwraJ9QlrQdxCoYPJWQ+qToPoo1i9s= X-Google-Smtp-Source: ABdhPJzVeExJaD/CjNWLTM74WLCnVnQ704O6tbqVFkkdz+m5GUZXP29xS8bd2gx44+lpqR1yEj4+TQ== X-Received: by 2002:adf:cd83:: with SMTP id q3mr1235747wrj.187.1589401460542; Wed, 13 May 2020 13:24:20 -0700 (PDT) Received: from dynamic-enq9r1qdb64zm570k-pd01.res.v6.highway.a1.net (dynamic-enq9r1qdb64zm570k-pd01.res.v6.highway.a1.net. [2001:871:60:8142:1dc7:b4bf:740c:b4c4]) by smtp.gmail.com with ESMTPSA id s8sm822292wrg.34.2020.05.13.13.24.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 May 2020 13:24:20 -0700 (PDT) Message-ID: <48434f500ee2bf9572e6bbff143be073114f8c42.camel@cybertec.at> Subject: Re: Reuse an existing slot with a new initdb From: Laurenz Albe To: Support , "pgsql-general@postgresql.org" Date: Wed, 13 May 2020 22:24:19 +0200 In-Reply-To: <48699aec-7736-6b8a-cd92-fe6d93db6a78@e-blokos.com> References: <5f198805-8fd4-b49b-4046-e98fb80dea74@e-blokos.com> <48699aec-7736-6b8a-cd92-fe6d93db6a78@e-blokos.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.32.5 (3.32.5-1.fc30) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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 -- Cybertec | https://www.cybertec-postgresql.com