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 1jbJh4-0001S1-Vy for pgsql-admin@arkaria.postgresql.org; Wed, 20 May 2020 08:03:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jbJh3-0002pU-Te for pgsql-admin@arkaria.postgresql.org; Wed, 20 May 2020 08:03:13 +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 1jbJdw-0006nt-Bc for pgsql-admin@lists.postgresql.org; Wed, 20 May 2020 08:00:00 +0000 Received: from mail-ej1-x643.google.com ([2a00:1450:4864:20::643]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jbJdt-0000bH-9I for pgsql-admin@lists.postgresql.org; Wed, 20 May 2020 07:59:59 +0000 Received: by mail-ej1-x643.google.com with SMTP id s3so2393578eji.6 for ; Wed, 20 May 2020 00:59:56 -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=Bnx8v12yBGuyM/5XPQgAqxx3K+hqa84+Gn6y62/xQ5c=; b=J7xiBZBTo6ScZTNnHwlyrLjYCB+CP8Ro4tIG471X9hjVMIIQqDP0NgZBn7Jt8hnN9L xkFhCaGFKQ2YvhiHHc14cZzQakjZRcD6NXRcAc/eLk+++ds6noLuMOo5n3jMYySsy2Ul A9VXVJ3IPE4+ZYgJilpHQx+yZ4bHP/XmEnbbtQ+YLh0xD5r63v52txtLc+tC6KW30x3d /JrfiLQQIxZkM6bak+ViprRlBMscx2AduWc/MwNqUrHsQtjydH+GyOYa17LRCOhw6RlS FPmIhN7XRvjN7wxfAzi3sVNfOw+TcjIx47LqJ4wpUQhyLv2A4FX7l7iX/DbACLQ5GoKC wMOA== 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=Bnx8v12yBGuyM/5XPQgAqxx3K+hqa84+Gn6y62/xQ5c=; b=psdP0althHRwIaROFev602dz6zY/49hvigWbwnSw1DRsW+DVgFEGFpV+KCEStNkdQz 3BKPMGeud1K+nfUJv3MwMjUm1eotFklLh4sokB4EpUJU/C2pVeg0JLW0qmAU6Efa7yLf B4jun2nzESEQq43Et3DWoVckA1LdkzKLeFESmgVfqoX0HW/z326QhBF/4fAnXhtscPcC 2lOolGSwjLrOtOiIFIi7yEykAuFaLpCy680tXhZRIc2EI699chr1OoNtTls2JLhWD0km nBUuplgvvVfJoFSTcDWJvxLO5+1n6g65IWkmaZg8XlzSsd3/R5+dsKfwf+FjwxjmPrTE ASww== X-Gm-Message-State: AOAM532rMOl6qJjDMBVEqDuSN2PR9dPQ1fuF0Ti1gU91PHjef9XqnPBF WsfgNfvkAIFe1zdR4z535xTZPQ== X-Google-Smtp-Source: ABdhPJx2UMzVyWYmiLPP8Ej8qID5FNHMd9UXtSV4Ca9SuUOqbQkPDtbwKJv7gr9K7Gltmf8Q5ds/iA== X-Received: by 2002:a17:906:5a98:: with SMTP id l24mr2601396ejq.442.1589961593755; Wed, 20 May 2020 00:59:53 -0700 (PDT) Received: from dynamic-eotlmt57cxwt1wzm9-pd01.res.v6.highway.a1.net (dynamic-eotlmt57cxwt1wzm9-pd01.res.v6.highway.a1.net. [2001:871:60:b467:23a6:b9e0:a2d5:f151]) by smtp.gmail.com with ESMTPSA id q16sm1245141eju.73.2020.05.20.00.59.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 May 2020 00:59:53 -0700 (PDT) Message-ID: <5e7267f0612ff2256abf7883103b605351059aa8.camel@cybertec.at> Subject: Re: pg_basebackup and timeline issues From: Laurenz Albe To: =?ISO-8859-1?Q?Cl=E9cio?= Anderson , pgsql-admin@lists.postgresql.org Date: Wed, 20 May 2020 09:59:52 +0200 In-Reply-To: References: 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: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Tue, 2020-05-19 at 15:02 -0300, Clécio Anderson wrote: > Sometimes when I need to run pg_basebackup to recreate a slave server I receive the error message below: > Latest checkpoint is at 427A/6D6743F0 on timeline 2, but in the history of the requested timeline, the server forked off from that timeline at 0/0 > When it happens.. After I edit master's history file pointing to a timeline referenced by the slave's slot I can issue the pg_basebackup without hassle. > I would like to know If there is any way to ignore or bypass this timeline lookup on master`s history file when issuing pg_basebackup command on slave server. Not sure, but did you remove any *.history files in the WAL directory? Yours, Laurenz Albe -- Cybertec | https://www.cybertec-postgresql.com