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 1jUf3z-0000vY-Hl for pgsql-general@arkaria.postgresql.org; Fri, 01 May 2020 23:27:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jUf3w-0008QS-Jp for pgsql-general@arkaria.postgresql.org; Fri, 01 May 2020 23:27:20 +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 1jUf3w-0008PT-6F for pgsql-general@lists.postgresql.org; Fri, 01 May 2020 23:27:20 +0000 Received: from mail-qt1-x841.google.com ([2607:f8b0:4864:20::841]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jUf3r-0001Yq-JJ for pgsql-general@postgresql.org; Fri, 01 May 2020 23:27:19 +0000 Received: by mail-qt1-x841.google.com with SMTP id o10so9243014qtr.6 for ; Fri, 01 May 2020 16:27:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=HaHc2ogCgrbd9AAxscH1gYtJXEoH0XZECLQx2ESXPuE=; b=Z17kNdD6rWVKRkDFcTfm0+PyNuf7vZV8IfKxqk1UeAd7sZjwPrprwKjitKE8FNvJpM g3sDMuEkVPYfS3biUaMPshZ8pdrrSLTYVAP1bY7FZy5UZKUEl+Sw/2gCSK3ipNnRkSFC +hXsVXo1o3zJqV1enBo3lrYM2xtIoOZ9slFx9FKsq9S78d0wt6pr15Xvi66McolmDOn8 7WzZkl7nq1HgP2BUykm5/BXBmvfqGSdUKieTUs8+1KrnFohSesQ+qabKZBkZI6WsNmWZ yjF4UIj54BZw8uC+ZephsVZdjSu4n4159zGOZpXlGH5eWcHqZXQFTRWBDL2CzZL7U3Uc 9kzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=HaHc2ogCgrbd9AAxscH1gYtJXEoH0XZECLQx2ESXPuE=; b=fpVwTr8LqK2D4HxeFNt8dnWosDLE93cxn30kfckmIBiz0Le1aNu8sO5qnzD6PlX6ns 85zGUZAtqUQst6C8vUQAzG3oCHMTur62G1csW3LB+ZNt8p0FHvGWtOI6kDBu+ZW/N/oO EYkPNGhrUozNLtN7gZ1bMmG9o/E0o8+IbAjy/UyWXgkwRolF80RLGa3ptT9AIo6aB2G+ xaqhkKJpfZ5zBCsmu1EKphnhsDVIpUzd7gLZSB/FDKMZUeZrKSHaMqXRRcAk7NXcjuI8 rDg0PUk1H+zhTbUbGJjkbJc1KYFpHj7zdnkHkjMEN6YsuyLixP9g+ILFFxncovRAwh4C hltw== X-Gm-Message-State: AGi0PuayxVYIA1LrfNG1c9+SPmILMxApRCVXRkkIMmfEYk1BKBpcY55i 5ATUFw/Jdwru56z/5vinTdV6gA== X-Google-Smtp-Source: APiQypKIP+YgB/L4nCxXDbdD2RHDke6jodxEQIRssGHUfkbS90wvPRYlV81opqUuKvGIZtu8KOKWog== X-Received: by 2002:ac8:2c0c:: with SMTP id d12mr6385288qta.284.1588375633870; Fri, 01 May 2020 16:27:13 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([191.116.165.168]) by smtp.gmail.com with ESMTPSA id o94sm3847700qtd.34.2020.05.01.16.27.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 May 2020 16:27:13 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id A87E6301ED6; Fri, 1 May 2020 19:27:00 -0400 (-04) Date: Fri, 1 May 2020 19:27:00 -0400 From: Alvaro Herrera To: =?iso-8859-1?Q?Andr=E9_H=E4nsel?= Cc: 'Paul =?iso-8859-1?Q?F=F6rster'?= , pgsql-general@postgresql.org Subject: Re: How to use pg_waldump? Message-ID: <20200501232700.GA31289@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <0c5401d61fbe$e4d945a0$ae8bd0e0$@webkr.de> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-May-01, André Hänsel wrote: > Paul Förster wrote: > > > maybe try with another WAL file or files? > > > > Works for me... > > Ok, I tried it with all the files in the pg_wal directory and it > worked with one: the first one (lexicographically/hex). The other files have not yet been written, so pg_waldump cannot read them. If you can find out what was the name of the file that it had before the recycling, you can rename (a copy of) the file to that, and then pg_waldump will be able to read it. (You can try brute-forcing the search for the correct file name). If you have an archive_command-generated archive of WALs, or pg_receivewal, those files should all be readable by pg_waldump. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services