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 1jbTge-00072h-DW for pgsql-general@arkaria.postgresql.org; Wed, 20 May 2020 18:43:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jbTgd-0005Bk-C1 for pgsql-general@arkaria.postgresql.org; Wed, 20 May 2020 18:43:27 +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 1jbTgd-0005BY-0u for pgsql-general@lists.postgresql.org; Wed, 20 May 2020 18:43:27 +0000 Received: from mail-wm1-x343.google.com ([2a00:1450:4864:20::343]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jbTga-0008FJ-De for pgsql-general@postgresql.org; Wed, 20 May 2020 18:43:26 +0000 Received: by mail-wm1-x343.google.com with SMTP id z4so3451095wmi.2 for ; Wed, 20 May 2020 11:43:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=CNZMQPT6qohFZlnQvHI27FYglmfoBeDd3yvRQn8En30=; b=H3hTFYbvkXfgouHcv2duXr9lXO0kH3Bl8zHUE8haNPiaQDKboizzUMNZJ5FxndxLpe PiXO89we7lAOz2BbcFGTCkajTrct/1eoBxZvY2ulL1HCrW3obT6StnIzya0rBHqZa5zk QYdNz8ckUqm6DH0r8rp2kr28tfRosxCUXnZfe7pGRigSZCjT/JfOT1tpm6tD1eOd+Nme kLCR1mEpXOdHEoU74H4wS0phxEumJshnbEPLUD86yjmTAxoCZO8Eg5ChifBnMEmcUyR3 fMBNK1K46TycloYnnmnqhDqDa9nwFPA8Rn2+uijl3NUO/8825TSoVT4l3C8oo+iImaas gDrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=CNZMQPT6qohFZlnQvHI27FYglmfoBeDd3yvRQn8En30=; b=oxvEd0fRLJwQ8fNJmP12epf7JLoDEj3/wUVD30Vqz/kQV8mkb+0oVN47EF/p+i+WdD IQPLQyidm/+2c+IU8BJI4aPloX7jTHvR1soN5JVI0jUnJ+iWoHpM9GCl9pr4Jy9fxTWj cqqd6YbZSRTfnP0ryMt4JKLnMslsljFg5bp/ku2O3+MWJvQ9vLl+G298f56ffZtUsSJk GDHzzY+QEJAjeXVpHMHv0n6Lff2M7sApAWJOVE53FoBY2ukUSu6iyfLoeu8+ndR16kJt 7XrGLUkXNQ/t/liUei7Rjn7MzIM482evSvMgJXnTVAFuPwUmHSGRJLLdxGICJA+4sswX F8SA== X-Gm-Message-State: AOAM531hl8MmZNzXCwScOYg6qf7ovMCkUn+bP7T/bYZ8A6lOSZkXeESJ /PY+8mscLAgKACxZFZ0sb2s= X-Google-Smtp-Source: ABdhPJwdVnF+gyGkYlr0C/t7e4yI/ZX45UE5gm38bidhzWYIRws5ACNCJVPOrX2uanWGknL3lIAJkg== X-Received: by 2002:a1c:9cca:: with SMTP id f193mr5530618wme.71.1590000203507; Wed, 20 May 2020 11:43:23 -0700 (PDT) Received: from [192.168.1.8] (241-57-239-77.dyn.cable.fcom.ch. [77.239.57.241]) by smtp.gmail.com with ESMTPSA id h20sm3830729wma.6.2020.05.20.11.43.22 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 20 May 2020 11:43:23 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Subject: Re: How to recover from compressed wal archieve in windows From: =?utf-8?Q?Paul_F=C3=B6rster?= In-Reply-To: Date: Wed, 20 May 2020 20:43:22 +0200 Cc: Andrus , pgsql-general Content-Transfer-Encoding: quoted-printable Message-Id: <8030BE39-3823-4831-8F9B-6516DCF5175F@gmail.com> References: <241F4C06123741D8BA0283C8690A5F12@dell2> To: Adrian Klaver X-Mailer: Apple Mail (2.3608.80.23.2.2) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi Andrus, hi Adrian, see: 25.3.6.2. Compressed Archive Logs https://www.postgresql.org/docs/12/continuous-archiving.html#BACKUP-TIPS Hope this helps in dealing with compressed WAL files. Cheers, Paul > On 20. May, 2020, at 20:36, Adrian Klaver = wrote: >=20 > On 5/20/20 8:08 AM, Andrus wrote: >> In windows 10 >> pg_receivewal --directory=3D"d:\wallog" --verbose --compress=3D9 >> is used to archieve WAL. >> This creates .gz files >> For restore >> restore_command=3D'copy "D:\\wallog\\%f" "%p"' >=20 > I'm guessing: >=20 > restore_command=3D'copy "D:\\wallog\\%f.gz" "%p"' >=20 > will get you the file. >=20 > The next problem is that I'm pretty sure a WAL file with *.gz = extension will not be able to be processed directly by the server. So = you are going to have to uncompress it at some point before it gets = restored. >=20 >=20 >> is used. >> Restore shows "file not found" errors in console. Thi sis probably = because %f argument is WAL file name without extension. >> How to use compressed WAL files for WAL archieve and restore in = windows ? >> Andrus. >=20 >=20 > --=20 > Adrian Klaver > adrian.klaver@aklaver.com >=20 >=20