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 1jUTD5-0002Mq-BG for pgsql-general@arkaria.postgresql.org; Fri, 01 May 2020 10:47:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jUTD4-0005ai-8Y for pgsql-general@arkaria.postgresql.org; Fri, 01 May 2020 10:47:58 +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 1jUTD3-0005ab-Rg for pgsql-general@lists.postgresql.org; Fri, 01 May 2020 10:47:58 +0000 Received: from mail.webkr.de ([78.47.173.34]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jUTD0-00033H-Oy for pgsql-general@postgresql.org; Fri, 01 May 2020 10:47:57 +0000 ARC-Authentication-Results: i=1; rspamd; auth=pass smtp.auth=andre@webkr.de smtp.mailfrom=andre@webkr.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=webkr.de; s=dkim; t=1588330072; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references; bh=d42xIdRf9LEVJvLP17lOtFtUv7/sUD0JRYpiuTNFVyM=; b=XuvKbH7F4N95A/6KDF56daqJKZIRbj0VIaE++UPeT8pjirGWqE0MSUaXLeqTMFjyavkVs4 QVoh9bY/OZeNoCKTtwmvDr1kuWTvpG3jag7+YhEQz5rsquCoDffm8LyRovgKPd+D/ye3Rn BR3xgB1bq1DKnjuFh6TnSWxQYo50R8w= ARC-Seal: i=1; s=dkim; d=webkr.de; t=1588330072; a=rsa-sha256; cv=none; b=RsJy90wgg7mCKeBSfLtdU+s76odyGQuXxzOmXLaKO0kIXKfsHD98oi9BpA369OGvdK5CFTDwOKsTqYntrPAnoA6phxDfxTvOH4GOV36jLmzv405KqiJvVngHu0xYySaOQg/HKm3CKU8D4eT7GDmXcd/RRHJBKv/k+5IVWZFzwfg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=webkr.de; s=dkim; t=1588330072; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references; bh=d42xIdRf9LEVJvLP17lOtFtUv7/sUD0JRYpiuTNFVyM=; b=nym/BqxxiJz5zKUnuA5S8opa7mpjBrtvEg5q7rVFuwGtUlGe1o/jaXTEZJ0zGBxW+4Y1UB Wo59Zz05D4dwpC1EIo05dXZoRF0+R/eP9TUn7pGry8RuD3e/Ms2TpDKQzD7TI7x8z9mmZ2 HeaPH5N25m+ZulkbDFk6WvDdi0MQig0= Received: from andrePC (unknown [223.206.60.111]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: andre@webkr.de) by mail.webkr.de (Postfix) with ESMTPSA id 7A31F1A0893 for ; Fri, 1 May 2020 12:47:51 +0200 (CEST) From: =?iso-8859-1?Q?Andr=E9_H=E4nsel?= To: Subject: How to use pg_waldump? Date: Fri, 1 May 2020 12:47:44 +0200 Message-ID: <0c1c01d61fa5$f4f23ff0$ded6bfd0$@webkr.de> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 16.0 thread-index: AdYfpNZo8/DkEQvLQZ+Ixjef8vw8CA== Content-Language: de List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk I=92m using pgBackRest for incremental backups which, as far as I = understand, use the WAL. These backups are relatively large, so I wanted to take a = look at my WAL. I understand pg_waldump is the tool for this. However, I struggle with its usage. The --help output suggests all command line parameters are optional, but running it like that yields "pg_waldump: no arguments specified". So I = tried "pg_waldump -z" which yields "pg_waldump: FATAL: could not find any WAL file". Ok, so apparently it doesn't know the location of the WAL files. = I then tried "pg_waldump -p /var/lib/postgresql/11/main/pg_wal". Now I get "pg_waldump: no start WAL location given". And this is where = I'm stuck. I don't know any WAL location. I don't even know how far back my = WAL goes, that's one thing I want to find out, among other things. On https://www.postgresql.org/docs/11/pgwaldump.html it says about "--start": > WAL location at which to start reading. The default is to start = reading the first valid log record found in the earliest file found. If that's the default, why does it ask me for a WAL location? What do I need to do?