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 1jbTZk-0006oE-Sp for pgsql-general@arkaria.postgresql.org; Wed, 20 May 2020 18:36:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jbTZj-0007O4-Fg for pgsql-general@arkaria.postgresql.org; Wed, 20 May 2020 18:36:19 +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 1jbTZh-0007Nx-Pf for pgsql-general@lists.postgresql.org; Wed, 20 May 2020 18:36:19 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jbTZd-0006FX-8t for pgsql-general@postgresql.org; Wed, 20 May 2020 18:36:16 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 4B1955C0175; Wed, 20 May 2020 14:36:11 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Wed, 20 May 2020 14:36:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm3; bh=d PPsmlrThabGhP/uYF9rPb35JjJTJ6WvgwdVFfQ6QHs=; b=wvS6t5GyHS5Smp2Lq IegkxYGDmr/WHl88k/fKoPjqU8fQsOC4JxwuAyxjtS6elc6X9nDHI/Z5+n7XelZ7 nGYVpHhXF0/goxjoxpoXx6zapsBt5+/1UdCYMgHcBK8yEdSK8w5ez3Uthnmv1lhQ YUtqdl1UmKyOtapROq2/m4SkV2aOL/ZoJV8ixVEINFy5ShbgJFpD57vTRovBB5B8 TxR2FqiaYNozF9/bIo41j6JREBfKADHUczNZXWqM4zPTVhRHl6NkKKSoOjMF0RRA rp/5UmEsbDD7z2910TcQ/en3trNiIUZahGDj1xDbCCBbakGXbS5/rMLO57Z8b2tX Rn0yQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=dPPsmlrThabGhP/uYF9rPb35JjJTJ6WvgwdVFfQ6Q Hs=; b=ffP/u7TS0gs2uMZvwU+Wv0yJ8WnUKtwnx5DWNKI+OMlvJQHXc6jZT/CGP bReD3fRIpKHKs9hyDulMuP9YFXhuuppI+SGlfUMPzMUHjSe3emgyGBP+pJBpLmP2 lUocQwdTFBFzFUTIj5OjYc91AERK4RF5mgszDC0N8FcEUtKai/67udZVZF7JTh9n VIorDPaFpKOVVYwYHLU4ZPo3UL5JHYz4Zf5YIYGp/nEJGJQpNb5WqN7DcFRcO6A0 ue9rQL/MhfTcyesYgyn4oTAWQOxbMJ6fraKcZUf3q3ykys0unyXuhaSPKean4u8Z 3bdsF44gx4gKoco+Mga29f+C4ClTw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedruddtledguddvhecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepuffvfhfhkffffgggjggtgfesth ejredttdefhhenucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdr khhlrghvvghrsegrkhhlrghvvghrrdgtohhmqeenucggtffrrghtthgvrhhnpeehfeefue etveffgeehfeeijeelhfegkeeujeehjeektdetjeeuhfeggffggfffleenucfkphepjeeh rddujedvrdehrddvfedunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrg hilhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh X-ME-Proxy: Received: from [192.168.1.3] (75-172-5-231.tukw.qwest.net [75.172.5.231]) by mail.messagingengine.com (Postfix) with ESMTPA id 5E674328005A; Wed, 20 May 2020 14:36:10 -0400 (EDT) Subject: Re: How to recover from compressed wal archieve in windows To: Andrus , pgsql-general References: <241F4C06123741D8BA0283C8690A5F12@dell2> From: Adrian Klaver Message-ID: Date: Wed, 20 May 2020 11:36:09 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: <241F4C06123741D8BA0283C8690A5F12@dell2> Content-Type: text/plain; charset=windows-1257; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 5/20/20 8:08 AM, Andrus wrote: > In windows 10 > pg_receivewal --directory="d:\wallog" --verbose --compress=9 > > is used to archieve WAL. > > This creates .gz files > > For restore > > restore_command='copy "D:\\wallog\\%f" "%p"' I'm guessing: restore_command='copy "D:\\wallog\\%f.gz" "%p"' will get you the file. 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. > 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. > > > -- Adrian Klaver adrian.klaver@aklaver.com