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 1jbXn7-000895-6L for pgsql-general@arkaria.postgresql.org; Wed, 20 May 2020 23:06:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jbXn6-0002Si-3c for pgsql-general@arkaria.postgresql.org; Wed, 20 May 2020 23:06:24 +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 1jbXn5-0002Sb-SL for pgsql-general@lists.postgresql.org; Wed, 20 May 2020 23:06:23 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jbXn3-00023g-P3 for pgsql-general@postgresql.org; Wed, 20 May 2020 23:06:23 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 44BCC5C011B; Wed, 20 May 2020 19:06:20 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Wed, 20 May 2020 19:06:20 -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=O dzas274VmnN5ILBlpJ5J9l/nlHDwbKwVEKZxtEG8YU=; b=m2ywqEdyUZm6N5Awq Ot/Es9/CjaoY6T/OvTL4L9oEjAP3VxRtEHZ6rKPDuN1Uly+tB5xvkKFsLo2oKZR6 eqgaBQmWO/zOWvX8LtWlc99Q2LEmE/zX8jdKaAJ8WM+qEr4EO4V4UcXi++T/2S1b qVokjMkM3wZFAQafoXcOyBqs/zxh03N08x5KEsA30mnDjx2hbudG6Fn5KWO2g0A3 evur4wwQh28v3BLnOd2WUQKX19SzF/6WDAjYvT994E2tI5yckPR/zPqYjPvpL3A8 3GMDlXEI5uEjnrv5hMofYI1BBl2sLIdPOvGO9t2RwW72ncbPOSLnVMdG2w4CF3Hb yPb9g== 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=Odzas274VmnN5ILBlpJ5J9l/nlHDwbKwVEKZxtEG8 YU=; b=xmsil3P9ZFLuFJAcgX38uUx+UFhkySUZqHPbAIJ0P2xJZVPL6XCThWuDo ESYq5RQlEybAo4Bt6IJnftoLeKRYw60GMzhMTsYTUSFuoE6POgC0rFBn0cY6xvYA PPwVZ0qKs0y9Xd6ViVP5lRNrG1R8Fj6V5R1N1jvEZrZn7uUFNxhyW1Ss38dUeFfr 84299vb84Qn8y0+OHnIGTG6PVQ24B4FrIeEQoJTCeBlCiTevrt3Q4NhYtiuVuexC fKVnc4830NSI9hExW+s/C4kJr3sdUOnweWw+CR1zqd2+0B/VEGwT6IUgkHb87YDT eiYYuSxrdLsnMRYAOmFwi4LlYHxWA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedruddutddgudejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefuvfhfhffkffgfgggjtgfgsehtje ertddtfehhnecuhfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhk lhgrvhgvrhesrghklhgrvhgvrhdrtghomheqnecuggftrfgrthhtvghrnhepheeffeeute evffegheefieejlefhgeekueejheejkedtteejuefhgefggffgffelnecukfhppeejhedr udejvddrhedrvdefudenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrih hlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhm 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 707E93280060; Wed, 20 May 2020 19:06:19 -0400 (EDT) Subject: Re: How to recover from compressed wal archieve in windows To: Andrus , pgsql-general References: <241F4C06123741D8BA0283C8690A5F12@dell2> <78E8CC8DEEFB439F8930FF1980057A56@dell2> From: Adrian Klaver Message-ID: Date: Wed, 20 May 2020 16:06:18 -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: <78E8CC8DEEFB439F8930FF1980057A56@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 12:09 PM, Andrus wrote: > Hi! > >> 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. > > How to decompress it automatically in windows ? > In Linux > restore_command = 'gunzip < "archived_wal/%f" > "%p"' > > maybe works. > > Will wal_compression=on will produce compressed wal files to additional > compression is not needed? Yes. Not sure how it will play with the streaming that pg_receivewal does. Maybe the best thing is to back up a bit and let us know what it is you are trying to achieve? > > Andrus. -- Adrian Klaver adrian.klaver@aklaver.com