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 1jX9YO-0002PC-Ad for pgsql-general@arkaria.postgresql.org; Fri, 08 May 2020 20:25:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jX9YN-0002fF-4B for pgsql-general@arkaria.postgresql.org; Fri, 08 May 2020 20:25:03 +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 1jX9YL-0002eR-5D for pgsql-general@lists.postgresql.org; Fri, 08 May 2020 20:25:02 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jX9YF-0002Xs-Nm for pgsql-general@lists.postgresql.org; Fri, 08 May 2020 20:25:00 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 659015C00DC; Fri, 8 May 2020 16:24:53 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Fri, 08 May 2020 16:24:53 -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=fm2; bh=o Pn42yCulP8EUqpmANAZYHaSzNth8OfVVQHLZZuefJw=; b=Fu8Bepy2EJvIPaPdh J2jHRdSZdaxEk874wC4MQKazwlH6bINUF2CZHqQUzYRMhJX12rR05Zj9T0135lp3 DASWtV7p5tn/AeBdcPF7YnH2D5DyHYNOywhNf7W5SOf5l39QJBAwF1/FV3RZ81On QhUbNXMR587qZnP5Q/NG7uJ3gO7VFy9Ru4dZLgjJpo/vo3WMuCJg5ZtxgcmAahho ZYsPUKVkllOJvlyzaFpkCTbigC/CyfVpdmZtm1V9oWKk34PEYihj1hgyZh91U9Pr w4pTtiTaqyloG/8KEbe3uSM6yx4awOJWcgH3pxDkQbhnHVc9u3CFZhOMFhUhTSb4 H12Rw== 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=oPn42yCulP8EUqpmANAZYHaSzNth8OfVVQHLZZuef Jw=; b=JyHYEBhsBJyGYp7RLhpmduGcOWAzpfiVACFuXVpWBwFrC/mC4Dmj1lI+I 3t2jKKhqDDSBy8/kMW0ThJ/VjNVm9Yvcla400nRB7x2JMkYMzhW2YwCyjpAko7N7 xtB9rfWDACl/fE/yILm/DZicU+FNLTjcj9UWz1w7kCXdSFVszw4ycUoP0AucjM7E hp9TthW+kGc2kRlcvVF9zMys1GOFX8Bopq1pwQcGMw/QxTcOlparcC7R7PB0I4Fo uIh/B3PPGe09aSTCuKN0VC4glUKoBHflIUeCu9hLAiciQF64bVJd4gkEWqm9gGz8 dI/W4hUfGz7Fk8JsvIRLXafqINpXg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrkeefgdekfecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepuffvfhfhkffffgggjggtgfesthejre dttdefjeenucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhl rghvvghrsegrkhhlrghvvghrrdgtohhmqeenucggtffrrghtthgvrhhnpeevteejtdeike etfefhhffhteelvdekffevudegjeeukefhgfdvieeliedtkeevhfenucffohhmrghinhep phhoshhtghhrvghsqhhlrdhorhhgnecukfhppeejhedrudejvddrhedrvdefudenucevlh hushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdr khhlrghvvghrsegrkhhlrghvvghrrdgtohhm 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 69D6F3280064; Fri, 8 May 2020 16:24:52 -0400 (EDT) Subject: Re: pg_basebackup cannot compress to STDOUNT To: Support , pgsql-general@lists.postgresql.org References: <22a6f05d-1bf3-1ea1-d32b-c44b08ed5767@aklaver.com> <70a49d18-c6cb-69e3-1ea8-ef09ebb5b579@e-blokos.com> From: Adrian Klaver Message-ID: Date: Fri, 8 May 2020 13:24:51 -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: <70a49d18-c6cb-69e3-1ea8-ef09ebb5b579@e-blokos.com> Content-Type: text/plain; charset=utf-8; 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/8/20 12:31 PM, Support wrote: > > On 5/8/2020 12:18 PM, Adrian Klaver wrote: >> On 5/8/20 12:14 PM, Support wrote: >>> Hi, >>> >>> Despite of the --help saying that it's possible to gzip to STDOUT and >>> pipe it for another process >>> pg_basebackup fails saying that it's not possible to gzip to STDOUT. >> >> 1) Postgres version? >> >> 2) Command run? >> >> 3) Error reported? >> >>> >>> Who to believe then? >>> >>> > 1) Postgres version? > 12.2 selt compiled with > ./configure --with-perl --enable-integer-datetimes --enable-depend > --with-pam --with-systemd --enable-nls --with-libxslt --with-libxml > --with-llvm --with-python --with-icu --with-gssapi --with-openssl > > 2) Command run? > ssh postgres@nodeXXX "pg_basebackup -h /run/postgresql -Ft -D- | pigz -c > -p2 " | pigz -cd -p2 | tar -xf- -C /usr/local/pgsql/data > > 3) Error reported? > pg_basebackup: error: cannot stream write-ahead logs in tar mode to stdout https://www.postgresql.org/docs/12/app-pgbasebackup.html "t tar Write the output as tar files in the target directory. The main data directory will be written to a file named base.tar, and all other tablespaces will be named after the tablespace OID. If the value - (dash) is specified as target directory, the tar contents will be written to standard output, suitable for piping to for example gzip. This is only possible if the cluster has no additional tablespaces and WAL streaming is not used. ^^^^^^^^^^^^^^^^^^^^^^^^^^ " So use -X fetch or X none > Try "pg_basebackup --help" for more information. > tar: This does not look like a tar archive > tar: Exiting with failure status due to previous errors > > Thanks! > > -- Adrian Klaver adrian.klaver@aklaver.com