From: Support <admin@e-blokos.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: pg_basebackup cannot compress to STDOUNT
Date: Fri, 8 May 2020 12:31:45 -0700
Message-ID: <70a49d18-c6cb-69e3-1ea8-ef09ebb5b579@e-blokos.com> (raw)
In-Reply-To: <22a6f05d-1bf3-1ea1-d32b-c44b08ed5767@aklaver.com>
References: <d2d908f2-27a2-15d5-4672-56eeaecd21f0@e-blokos.com>
<22a6f05d-1bf3-1ea1-d32b-c44b08ed5767@aklaver.com>
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
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!
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: admin@e-blokos.com
Subject: Re: pg_basebackup cannot compress to STDOUNT
In-Reply-To: <70a49d18-c6cb-69e3-1ea8-ef09ebb5b579@e-blokos.com>
References: <d2d908f2-27a2-15d5-4672-56eeaecd21f0@e-blokos.com> <22a6f05d-1bf3-1ea1-d32b-c44b08ed5767@aklaver.com> <70a49d18-c6cb-69e3-1ea8-ef09ebb5b579@e-blokos.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox